16 lines
332 B
Plaintext
16 lines
332 B
Plaintext
$OpenBSD: patch-gcl_c,v 1.1 2017/05/07 20:24:01 espie Exp $
|
|
buffer overflow
|
|
|
|
Index: gcl.c
|
|
--- gcl.c.orig
|
|
+++ gcl.c
|
|
@@ -925,7 +925,7 @@ static int lexanal(void) {
|
|
|
|
if (env && *env) {
|
|
strncpy(lexbuffer, env, LBSIZE-1);
|
|
- lexbuffer[LBSIZE] = '\0';
|
|
+ lexbuffer[LBSIZE-1] = '\0';
|
|
}
|
|
else
|
|
lexbuffer[0] = '\0';
|