crash5band / MikuMikuWorld

Project Sekai score viewer and editor
MIT License
79 stars 62 forks source link

Fix potential string_view overflow when parsing empty lines #59

Closed GuanYixuan closed 5 months ago

GuanYixuan commented 5 months ago

Found by opening .sus files (under debug mode) where empty lines are passed to the startsWith() function. This issue does not crash the current released version, but it does trigger an assertion error when run in debug mode.