Source: dpkg
Version: 1.19.4

When building dpkg-1.19.4 from source via dpkg-buildpackage v1.18.24,
I encountered a test failure:

./t-file .................................
not ok 23 - strcmp 'this is a test string
Failed 1/26 subtests

This is due to a test_str() against vb.buf in lib/dpkg/t/t-file.c,
where vb.buf is apparently not guaranteed to be NULL-terminated.  I'm
honestly not sure how this test ever passed under these circumstances.

Change the test_str() to "test_mem(vb.buf, ==, ref_data,
strlen(ref_data))", and I get a solid pass.

--
Frank Schaefer
"If a server crashes in a server farm and no one pings it, does it
still cost four figures to fix?"

Reply via email to