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@
This commit is contained in:
parent
4eb7f4a98a
commit
cc47d74dec
@ -1,8 +1,9 @@
|
||||
# $OpenBSD: Makefile,v 1.18 2004/11/21 22:29:50 espie Exp $
|
||||
# $OpenBSD: Makefile,v 1.19 2007/04/20 08:55:35 claudio Exp $
|
||||
|
||||
COMMENT= "receive/send files via X/Y/ZMODEM protocol"
|
||||
|
||||
DISTNAME= lrzsz-0.12.20
|
||||
PKGNAME= ${DISTNAME}p0
|
||||
CATEGORIES= comms
|
||||
|
||||
HOMEPAGE= http://www.ohse.de/uwe/software/lrzsz.html
|
||||
|
12
comms/lrzsz/patches/patch-src_lrz_c
Normal file
12
comms/lrzsz/patches/patch-src_lrz_c
Normal file
@ -0,0 +1,12 @@
|
||||
$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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user