openbsd-ports/comms/lrzsz/patches/patch-src_lrz_c
claudio cc47d74dec lrx (receive XMODEM) crashes almost always because it underflows a buffer
by one byte and that gets catched by our malloc implementation.
OK mbalmer@ jasper@
2007-04-20 08:55:35 +00:00

13 lines
387 B
Plaintext

$OpenBSD: patch-src_lrz_c,v 1.1 2007/04/20 08:55:35 claudio Exp $
--- src/lrz.c.orig Thu Apr 19 14:24:36 2007
+++ src/lrz.c Thu Apr 19 14:26:26 2007
@@ -1251,7 +1251,7 @@ procheader(char *name, struct zm_fileinfo *zi)
if ( *p == '/')
*p = '_';
- if ( *--p == '.') /* zap trailing period */
+ if (p != name_static && *--p == '.') /* zap trailing period */
*p = 0;
}