Fraunhofer-AISEC / archie

ARCHIE is a QEMU-based architecture-independent fault evaluation tool, that is able to simulate transient and permanent instruction and data faults in RAM, flash, and processor registers.
Apache License 2.0
20 stars 13 forks source link

Use explicit data types with pandas #42

Open lukasauer opened 2 years ago

lukasauer commented 2 years ago

Pandas may sometimes choose to convert large integers (close to 64-bit integer limit) to floats. This is very common on register dataset on 64-bit architecture and is fixed with #41. Similar situation in the code base should be fixed as well. This problem is likely to also occur if a target binary is mapped to a negative memory address (typical for kernels).

tibersam commented 2 years ago

Just out of interest: is it negative because the memory address is a unsigned address value interpreted as a signed?

lukasauer commented 2 years ago

No, the addresses are always interpreted correctly. I am not sure what the underlying problem is. Could be because there are mixed data types (signed and unsigned integers in this case) in the pandas data structure.