There's a nasty bug on line 289 of
sdcc/link/z80/lklibr.c -- a memory buffer is allocated
for a string, but that buffer is one byte too small and
the trailing null ends up clobbering other memory. This
causes a segfault to occur later in the code.
The fix adds 1 to the buffer length to account for the
This bug was first detected on version 2.6.0, but I
think it might also exist in earlier versions.
Log in to post a comment.