blundar / analyze.exe

Binary file analysis tool
MIT License
24 stars 7 forks source link

Precision = 4 (uint32) incorrect result #1

Open akudlacek opened 5 years ago

akudlacek commented 5 years ago

Given binary data 0x91 0x00 0x89 9x00 Motorola (Big endian) result is 2432698512 or 0x91000890 It should be 2432731392 or 0x91008900

At first glance it looks byte 3 did not get shifted correctly. Also the little endian result seems to be incorrect. I did not check Precision = 3 but Precision = 1,2 seem to be fine.

blundar commented 5 years ago

I didn't write this code. Submit a pull request if it really bothers you. :) -D

On Tue, May 28, 2019 at 5:43 PM akudlacek notifications@github.com wrote:

Given binary data 0x91 0x00 0x89 9x00 Motorola (Big endian) result is 2432698512 or 0x91000890 It should be 2432731392 or 0x91008900

At first glance it looks byte 3 did not get shifted correctly. Also the little endian result seems to be incorrect. I did not check Precision = 3 but Precision = 1,2 seem to be fine.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/blundar/analyze.exe/issues/1?email_source=notifications&email_token=AAPY3CWPJVR4IZ7OLVSP74TPXWRQTA5CNFSM4HQHLCFKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4GWKWG7A, or mute the thread https://github.com/notifications/unsubscribe-auth/AAPY3CWZLU3YBP4BSZHMYRTPXWRQTANCNFSM4HQHLCFA .