Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/bsd/ekermit/dist properly size a buffer to include ...
details: https://anonhg.NetBSD.org/src/rev/a614c643325a
branches: trunk
changeset: 378398:a614c643325a
user: mrg <mrg%NetBSD.org@localhost>
date: Mon Apr 12 08:55:22 2021 +0000
description:
properly size a buffer to include the trailing nul.
diffstat:
external/bsd/ekermit/dist/kermit.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r d281309efd06 -r a614c643325a external/bsd/ekermit/dist/kermit.c
--- a/external/bsd/ekermit/dist/kermit.c Mon Apr 12 08:54:11 2021 +0000
+++ b/external/bsd/ekermit/dist/kermit.c Mon Apr 12 08:55:22 2021 +0000
@@ -1291,7 +1291,7 @@ gattr(struct k_data * k, UCHAR * s, stru
UCHAR c; /* Workers */
int aln, i, rc;
- UCHAR sizebuf[SIZEBUFL];
+ UCHAR sizebuf[SIZEBUFL+1];
rc = -1;
while ((c = *s++)) { /* Get attribute tag */
Home |
Main Index |
Thread Index |
Old Index