File tree 2 files changed +4
-2
lines changed
2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 1
- 352617bfe0a880febf5d2a87e89ea439c742ba18
1
+ aea4360ca9c37f8e929f177ae7e42593ee62aa79
2
2
3
3
The first line of this file holds the git revision number of the last
4
4
merge done from the gofrontend repository.
Original file line number Diff line number Diff line change @@ -1752,7 +1752,9 @@ Lex::skip_cpp_comment()
1752
1752
// For field tracking analysis: a //go:nointerface comment means
1753
1753
// that the next interface method should not be stored in the type
1754
1754
// descriptor. This permits it to be discarded if it is not needed.
1755
- if (this ->lineoff_ == 2 && memcmp (p, " go:nointerface" , 14 ) == 0 )
1755
+ if (this ->lineoff_ == 2
1756
+ && pend - p > 14
1757
+ && memcmp (p, " go:nointerface" , 14 ) == 0 )
1756
1758
this ->saw_nointerface_ = true ;
1757
1759
1758
1760
while (p < pend)
You can’t perform that action at this time.
0 commit comments