We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 352617b commit aea4360Copy full SHA for aea4360
go/lex.cc
@@ -1752,7 +1752,9 @@ Lex::skip_cpp_comment()
1752
// For field tracking analysis: a //go:nointerface comment means
1753
// that the next interface method should not be stored in the type
1754
// descriptor. This permits it to be discarded if it is not needed.
1755
- if (this->lineoff_ == 2 && memcmp(p, "go:nointerface", 14) == 0)
+ if (this->lineoff_ == 2
1756
+ && pend - p > 14
1757
+ && memcmp(p, "go:nointerface", 14) == 0)
1758
this->saw_nointerface_ = true;
1759
1760
while (p < pend)
0 commit comments