You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This yaml (valid as far as I can tell) causes exception in Scanner.cs due to the following code exceeding the buffer:
// Have we find a non-empty line?if(!analyzer.IsBreak()){if(isLiteral&&isFirstLine==true){intlocalIndent=cursor.LineOffset;inti=0;for(;!analyzer.IsBreak(i)&&analyzer.IsSpace(i);++i,++localIndent);// BUG HEREif(analyzer.IsBreak(i)&&localIndent>cursor.LineOffset){isFirstLine=false;indentOfFirstLine=localIndent;}}break;}
I cannot work out how to modify this code to achieve its original intent and protect against exceeding the buffer overrun. For now I've simply added a limit check in the for loop. I'll put up a PR with the unit test and "fix".
The text was updated successfully, but these errors were encountered:
This yaml (valid as far as I can tell) causes exception in Scanner.cs due to the following code exceeding the buffer:
I cannot work out how to modify this code to achieve its original intent and protect against exceeding the buffer overrun. For now I've simply added a limit check in the for loop. I'll put up a PR with the unit test and "fix".
The text was updated successfully, but these errors were encountered: