mirror of
https://github.com/cemu-project/idapython.git
synced 2024-12-28 02:31:53 +01:00
bugfix: linput_t was accessing uninitialized variable in some cases
This commit is contained in:
parent
8b7625f145
commit
42a2f7f630
@ -98,19 +98,10 @@ public:
|
||||
// class from and to IDC. The value of this variable must be set to two
|
||||
int __idc_cvt_id__;
|
||||
//--------------------------------------------------------------------------
|
||||
loader_input_t(PyObject *pycobject = NULL)
|
||||
loader_input_t(PyObject *pycobject = NULL): li(NULL), own(OWN_NONE), __idc_cvt_id__(2)
|
||||
{
|
||||
__idc_cvt_id__ = 2; // Opaque object
|
||||
if (pycobject != NULL && PyCObject_Check(pycobject))
|
||||
{
|
||||
_from_cobject(pycobject);
|
||||
}
|
||||
else
|
||||
{
|
||||
li = NULL;
|
||||
own = OWN_NONE;
|
||||
fn.qclear();
|
||||
}
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------
|
||||
@ -123,7 +114,7 @@ public:
|
||||
close_linput(li);
|
||||
else if (own == OWN_FROM_FP)
|
||||
unmake_linput(li);
|
||||
|
||||
own = OWN_NONE;
|
||||
li = NULL;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user