Bryan,

On Tue, Mar 29, 2022 at 1:45 PM Mathieu Malaterre <ma...@debian.org> wrote:
>
> Bryan,
>
> On Sat, Mar 26, 2022 at 2:00 AM Bryan Henderson <bry...@giraffe-data.com> 
> wrote:
> >
> > 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.

I am going to discard the test-suite result in Debian package.
Something is not quite right on my side.

Compiling netpbm with gcc-10+ubsan gives odd results on my amd64:

== palm-roundtrip.test ==
pamdepth: promoting from black and white to grayscale
pnmcolormap: making histogram...
pnmcolormap: Scanning image 0
pnmcolormap: 20314 colors so far
pnmcolormap: 20314 colors found
pnmcolormap: choosing 256 colors...
pnmremap: 256 colors found in colormap
pmfileio.c:664:26: runtime error: left shift of 128 by 24 places
cannot be represented in type 'int'
pmfileio.c:664:26: runtime error: left shift of 128 by 24 places
cannot be represented in type 'int'
pmfileio.c:664:26: runtime error: left shift of 128 by 24 places
cannot be represented in type 'int'
pmfileio.c:664:26: runtime error: left shift of 128 by 24 places
cannot be represented in type 'int'
palm-roundtrip.test: FAILURE

I am going to /assume/ code is not tested on arch other than amd64, so
I think this is acceptable behavior.


Thanks for your help.

Reply via email to