ref: 3f9d5e4a4f9e4f0b5fe66e4a6745a4b8c5f6e447
parent: 6b999263ae69d64870a8bf02a06c1f707a73a7e0
author: cinap_lenrek <[email protected]>
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) {