Closed anth12 closed 1 year ago
https://github.com/Handlebars-Net/Handlebars.Net/issues/535
The following line currently throws an OutOfMemoryException for unrecognised expressions: https://github.com/Handlebars-Net/Handlebars.Net/blob/01ad0e69e56331371f85a1c59c008d7ecfd06f78/source/Handlebars/Compiler/Lexer/Parsers/BlockParamsParser.cs#L28
This PR exits the while loop when reaching the end of the end of the string reader.
Kudos, SonarCloud Quality Gate passed!
0 Bugs 0 Vulnerabilities 0 Security Hotspots 0 Code Smells
100.0% Coverage 0.0% Duplication
https://github.com/Handlebars-Net/Handlebars.Net/issues/535
The following line currently throws an OutOfMemoryException for unrecognised expressions: https://github.com/Handlebars-Net/Handlebars.Net/blob/01ad0e69e56331371f85a1c59c008d7ecfd06f78/source/Handlebars/Compiler/Lexer/Parsers/BlockParamsParser.cs#L28
This PR exits the while loop when reaching the end of the end of the string reader.