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
!DSPAM:6015a97f296096962216590!