Skip to content

Commit 451b255

Browse files
committed
fix a lockup
The parse would lockup in REPL mode on comment to end of line. See #111 Thanks MvGulik
1 parent 97cd35c commit 451b255

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

ChangeLog

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
started 8.9.2 22/11/23
2+
- fix a lockup with comment characters in REPL [MvGulik]
3+
14
started 8.9.1 15/2/23
25
- fix build with --std=c99 [Schamschula]
36

configure.ac

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Process this file with autoconf to produce a configure script.
22

3-
AC_INIT([nip2], [8.9.1], [[email protected]])
3+
AC_INIT([nip2], [8.9.2], [[email protected]])
44

55
# foreign stops complaints about a missing README (we use README.md instead)
66
# and missing INSTALL (the standard Gnu INSTALL is not very useful)
@@ -17,7 +17,7 @@ dnl
1717

1818
m4_define([nip_major_version], [8])
1919
m4_define([nip_minor_version], [9])
20-
m4_define([nip_micro_version], [1])
20+
m4_define([nip_micro_version], [2])
2121
m4_define([nip_version],
2222
[nip_major_version.nip_minor_version.nip_micro_version])
2323

src/lex.l

+1-1
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ read_char( void )
180180

181181
/* Read string up to \n, EOF.
182182
*/
183-
while( (ch = input()) != EOF && ch != '\n' )
183+
while( (ch = input()) != EOF && ch != '\n' && ch != '\0')
184184
;
185185
}
186186

0 commit comments

Comments
 (0)