1 From a7c525191aa725f4ebb7b489cdd7dd854a4e42fb Mon Sep 17 00:00:00 2001
2 From: Uwe Ohse <uwe@ohse.de>
3 Date: Sun, 1 Mar 2020 22:35:28 +0000
4 Subject: [PATCH] may-be-security-fix: avoid possible underflow
8 [a.heider: mention CVE in commit message]
11 1 file changed, 3 insertions(+), 2 deletions(-)
15 @@ -432,10 +432,11 @@ zsdata(const char *buf, size_t length, i
16 VPRINTF(3,("zsdata: %lu %s", (unsigned long) length,
17 Zendnames[(frameend-ZCRCE)&3]));
21 zsendline(*buf); crc = updcrc((0377 & *buf), crc);
23 - } while (--length>0);
26 xsendline(ZDLE); xsendline(frameend);
27 crc = updcrc(frameend, crc);