[Pkg-phototools-devel] Bug#1007234: Test suite fails on all but amd64 arches

Bryan Henderson bryanh at giraffe-data.com
Sat Mar 26 00:48:16 GMT 2022


I don't know familiar you are with debuggers, C, or C arithmetic, so I'm
attaching a diagnostic version of the program and will also explain where I
think the problem lies in case you want to investigate on your own.

If you put this .c file in converter/other/pnmtopalm/ and rebuild and run the
'palmtopnm' executable that results, it should detect the failure and write
some useful diagnostic messages.  Tell me what happens.


The problem is in function 'readPackBitsRow16'.  The variable 'j' is getting
too large -- absurdly large, apparently because a bit code that is supposed to
encode a negative signed integer is being interpreted as a positive unsigned
one somewhere.  It should not be hard to pinpoint where the arithmetic is
generating such a a large number.

-- 
Bryan Henderson                                   San Jose, California
-------------- next part --------------
A non-text attachment was scrubbed...
Name: palmtopnm.c
Type: text/x-csrc
Size: 42137 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-phototools-devel/attachments/20220326/3318237e/attachment-0001.c>


More information about the Pkg-phototools-devel mailing list