Community
Participate
Working Groups
Created attachment 266610 [details] Simple binary that demonstrates the problem I add a binary to the memory map manually and then I try to use address_to_line(ctx, 0, 0xffffffffffffffff, cb, data) to find all the CodeAreas in the context. I expect to get several of them. If I limit the address range to the address of the _start-function (address_to_line(ctx, 0x40010c, 0x40010d, cb, data) I do get one CodeArea at 40010c-400110 and line minimal.c:1-2. If I do address_to_line(ctx, 0x40010c, 0x400123, cb, data) I get multiple code areas with the same address 400120-400123 and line minimal.c:4-5. I'm not sure how to set this up as a test case that is easy to run without Simics providing surrounding infrastructure.
The problem was caused by integer overflow. Fixed. Thanks!