hoyori / idapython

Automatically exported from code.google.com/p/idapython
Other
1 stars 1 forks source link

Different datatypes on Linux and Windows #39

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hey there,

Just encountered a strange problem with version 1.2.0 (again SVN rev. 218).
We use the wrapped op_t class from Python and encounter different datatypes
for the dtyp member (I guess also for the other signed char members).

Windows 32-bit, IDA 5.5, IDAPython 1.2.10 with Python 2.5.2 (binary from
the web site):
type(op.dtyp) == 'str'

Linux 64-bit, IDA 5.5, IDAPython 1.2.10 with 32-bit Python 2.6.2
(self-built binary):
type(op.dtyp) == 'int'

I figure the SWIG bindings in ua.i could be the culprit, specifically the
first lines starting with '%appy unsigned char { char XXX }'. I believe
they are wrapped correctly on Linux but not on Windows.
It is intended for the operand dtyp member to be wrapped to an 8-bit
unsigned integer value, right?
Btw, I'm using SWIG 1.3.36 on Debian Squeeze.

Regards,

-- 
Christian Blichmann

========================================================================
zynamics GmbH - Address: Grosse Beckstrasse 3, 44787 Bochum, Germany
              - Phone: +49 (234) 6 87 07 86 - Fax: +49 (234) 57 00 02 00
              - UstId: DE814229418 - Trade Register: HRB 9626
========================================================================
E-mail Confidentiality Notice and Disclaimer
This e-mail and any files transmitted with it are confidential and are
intended solely for the use of the individual or entity to which they
are addressed. Access to this e-mail by anyone else is unauthorized. If
you are not the intended recipient, any disclosure, copying,
distribution or any action taken or omitted to be taken in reliance on
it, is prohibited. E-mail messages are not necessarily secure. Zynamics
GmbH does not accept responsibility for any changes made to this message
after it was sent.
========================================================================

Original issue reported on code.google.com by christian.blichmann%zynamics.com@gtempaccount.com on 28 Aug 2009 at 4:12

GoogleCodeExporter commented 9 years ago
This problem was fixed in http://code.google.com/p/idapython/source/detail?r=209
I have not made any binary builds since. Will make one at some point soon. In 
the
mean time you can build your own binary on Windows. If you do and the problem 
does
not go away, please let me know.

Original comment by gergely.erdelyi on 28 Aug 2009 at 5:20

GoogleCodeExporter commented 9 years ago

Original comment by gergely.erdelyi on 4 Feb 2010 at 9:04