summaryrefslogtreecommitdiff
path: root/development/icon/patches/lexer.patch
diff options
context:
space:
mode:
Diffstat (limited to 'development/icon/patches/lexer.patch')
-rw-r--r--development/icon/patches/lexer.patch18
1 files changed, 18 insertions, 0 deletions
diff --git a/development/icon/patches/lexer.patch b/development/icon/patches/lexer.patch
new file mode 100644
index 0000000000..290ed67364
--- /dev/null
+++ b/development/icon/patches/lexer.patch
@@ -0,0 +1,18 @@
+commit bb7c6b5232d8cf0ad98e5ab8e8e3afd3a249751f
+Author: Gregg Townsend <gmt@cs.arizona.edu>
+Date: Mon Aug 28 08:08:32 2017 -0700
+
+ Fix ancient potential lexer bug (thx Sean Jensen).
+
+diff --git a/src/common/yylex.h b/src/common/yylex.h
+--- a/src/common/yylex.h
++++ b/src/common/yylex.h
+@@ -263,7 +263,7 @@
+ {
+ register char *s1;
+ s1 = lex_sbuf.strtimage;
+- while (s != '\0' && s1 < lex_sbuf.endimage && *s == *s1) {
++ while (*s != '\0' && s1 < lex_sbuf.endimage && *s == *s1) {
+ ++s;
+ ++s1;
+ }