pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: games/xpipeman problem?



On 30.01.2021 16:15, Paul Goyette wrote:
Not that I play often :) but xpipeman seems tobe broken.  Running
it seems to call abort(), ...

Fixed.  It was a trivial buffer overflow that would have been caught if
the CFLAGS had only included -Werror=format.

To find the cause and fix it, I did this:

cd games/xpipeman
bmake configure
bmake build-env
make CFLAGS="-O0 -ggdb"
^D
bmake install
gdb --args work/xpipeman/xpipeman
r
where

This told me that sprintf was called from main.c:324.  The rest was
simple character counting.

Roland


Home | Main Index | Thread Index | Old Index