Infinite loop in dcraw with current GCC versions

conchur@web.de conchur@web.de
Fri Feb 27 10:31:00 GMT 2015


Hi,
 
I think you know about the problem of undefined behavior in you dcraw code [1].
This can lead to very bad things like infinite loops. Is there any progress or
way to support you in fixing this?

I know that there are some patches floating around like

  https://sources.debian.net/src/exactimage/0.9.1-2/debian/patches/gcc_48_dcraw_infinite_loop.patch/

But they seem to be against older versions of dcraw.

A good way to test against such problems is to use following CFLAGS:

-g3 -fsanitize=undefined -fsanitize=address -Wall

and then run your testset of images against them + recording
the error messages.

[1] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54136#c5



More information about the Gcc-help mailing list