ref: c56793f412570c1480df41310470cd9df1c29dfa
parent: 9d991515ed645ab4e649289ee8d6e8fe8bbcc119
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Thu Aug 10 23:38:10 EDT 2017
awk: don't get into a infinite loop with eof while in string (thanks BurnZeZ)
--- a/sys/src/cmd/awk/lex.c
+++ b/sys/src/cmd/awk/lex.c
@@ -363,7 +363,7 @@
case 0:
SYNTAX( "non-terminated string %.10s...", buf );
lineno++;
- break;
+ RET(0);
case '\\':
c = input();
switch (c) {--
⑨