Bug report: inn-2.4.3 on 64 bit machines

Russ Allbery rra at stanford.edu
Sun Apr 2 18:30:16 UTC 2006


Ernst Boetsch <Ernst.Boetsch at lrz-muenchen.de> writes:

> in  "inn-2.4.3/tests/lib/snprintf-t.c"  there is a bug which is
> only triggered on 64 bit machines (like AMD 64):

>    int count;
>    long lcount;

>    [ ... ]

>    test_format(23, true, "abcdefghijklmnopqrstuvwxyz01234", 36,
> 			"%ln%s%n", &count, string, &lcount);

> The length modifier  "l"  is at the wrong place (patch as unified diff
> at the end of the e-mail).  Therefore, test  "lib/snprintf 25"  fails.

> The bug is only triggered on 64 bit machines because on 32 bit machines
> there is no difference between  "int"  and  "long".

Ah, good catch, thank you!

-- 
Russ Allbery (rra at stanford.edu)             <http://www.eyrie.org/~eagle/>



More information about the inn-bugs mailing list