Bug: statistics with broken image

If I call carve_debug -s test/data/imgbroken2.ppm AddressSanitizer says, that there are problems with image_read_from_file and image_init. When I call carve_debug -n 2 test/data/imgbroken2.ppm program executes properly with failure.

These two calls do not have identical program traces.
Therefore, it might very well be the case that in one case you access invalid memory (or do something else triggering ASAN) but not in the other.
ASAN will tell you the issue, the location of the issue, the root cause, and much more very helpful information.

1 Like

Did you mean “executes properly without failure”?

I mean it executes properly (without message from AssressSanitizer) with returning EXIT_FAILURE.