CVSROOT:        /cvs
Module name:    src
Changes by:     [email protected]    2023/07/12 05:26:13

Modified files:
        usr.bin/patch  : patch.c pch.c pch.h 

Log message:
Use ssize_t instead of short for line lengths

sthen hit a binary patch containing a 'line' of length > 32kB. This made
the short used for storing the line length wrap and resulted in a buffer
underflow and segfault.  This uses a larger type, which doesn't actually
fix the problem, but makes it much less likely to be hit.

ok florian otto sthen

Reply via email to