CompilerTeaching / Pegmatite

A library for reusable parsers
http://compilerteaching.github.io/pegmatite/
BSD 2-Clause "Simplified" License
16 stars 9 forks source link

Fix a buffer overflow issue when using StringInput #26

Closed varkor closed 7 years ago

varkor commented 7 years ago

Previously, parsing directly from a string (using StringInput) with a length greater than the buffer size (512 characters) would result in memory corruption and parsing errors.