mirror of
https://git.freebsd.org/ports.git
synced 2025-04-28 01:26:39 -04:00
comms/lrzsz: patch CVE-2018-10195
Security: CVE-2018-10195 MFC: 2024Q4
This commit is contained in:
parent
c69b15e8ae
commit
a2e118fa21
2 changed files with 20 additions and 1 deletions
|
@ -1,6 +1,6 @@
|
||||||
PORTNAME= lrzsz
|
PORTNAME= lrzsz
|
||||||
PORTVERSION= 0.12.20
|
PORTVERSION= 0.12.20
|
||||||
PORTREVISION= 6
|
PORTREVISION= 7
|
||||||
CATEGORIES= comms
|
CATEGORIES= comms
|
||||||
MASTER_SITES= http://ohse.de/uwe/releases/
|
MASTER_SITES= http://ohse.de/uwe/releases/
|
||||||
|
|
||||||
|
|
19
comms/lrzsz/files/patch-zm.c
Normal file
19
comms/lrzsz/files/patch-zm.c
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
--- src/zm.c.orig 1998-12-29 16:48:38 UTC
|
||||||
|
+++ src/zm.c
|
||||||
|
@@ -431,10 +431,12 @@ zsdata(const char *buf, size_t length, int frameend)
|
||||||
|
VPRINTF(3,("zsdata: %lu %s", (unsigned long) length,
|
||||||
|
Zendnames[(frameend-ZCRCE)&3]));
|
||||||
|
crc = 0;
|
||||||
|
- do {
|
||||||
|
- zsendline(*buf); crc = updcrc((0377 & *buf), crc);
|
||||||
|
- buf++;
|
||||||
|
- } while (--length>0);
|
||||||
|
+
|
||||||
|
+ for( ; length; length--) {
|
||||||
|
+ zsendline(*buf); crc = updcrc((0377 & *buf), crc);
|
||||||
|
+ buf++;
|
||||||
|
+ }
|
||||||
|
+
|
||||||
|
xsendline(ZDLE); xsendline(frameend);
|
||||||
|
crc = updcrc(frameend, crc);
|
||||||
|
|
Loading…
Add table
Reference in a new issue