#123 t-test100.c/dkim_minbody broken in 64bit mode

v2.8.2
open
nobody
5
2009-06-20
2009-06-20
Jens Elkner
No

elkner.idev dkim-milter-2.8.3/obj.SunOS.5.10.i86pc/libdkim > ./t-test100 *** exercise dkim_minbody()
res=18446744073709551615 , max= 4294967295
Assertion failed: x == y, file t-test100.c, line 141
Abort (core dumped)

t-test100 was modified to show the problem as follows:
x = dkim_minbody(dkim);
y = ULONG_MAX;
fprintf(stderr,"res=%lu , max= %lu\n", x, y);
//assert(dkim_minbody(dkim) == ULONG_MAX);
assert(x == y);
assert(dkim_minbody(dkim2) == 340);

Discussion

  • Jens Elkner
    Jens Elkner
    2009-06-20

    It turns out, that that dkim.h needs to include limits.h (SunOS 5.10 Generic_139556-08 aka S10u7)