Skip to content

Commit f19bbae

Browse files
committed
Fix the first two ASAN overflow reports in #1163
1 parent 2cd1aeb commit f19bbae

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

regression-tests/test-results/version

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
cppfront compiler v0.7.1 Build 9715:1523
2+
cppfront compiler v0.7.1 Build 9715:1649
33
Copyright(c) Herb Sutter All rights reserved
44

55
SPDX-License-Identifier: CC-BY-NC-ND-4.0

source/build.info

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
"9715:1523"
1+
"9715:1649"

source/lex.h

+1
Original file line numberDiff line numberDiff line change
@@ -1735,6 +1735,7 @@ auto lex_line(
17351735
"string literal \"" + line.substr(i+1, j)
17361736
+ "\" is missing its closing \""
17371737
);
1738+
return {};
17381739
}
17391740

17401741
// At this point we have a string-literal, but it may contain

0 commit comments

Comments
 (0)