Parsing GameMaker null-terminated strings had an off-by-one error in their bounds checks, so if a string appeared directly at the end of a stream, it would throw an exception. This corrects the comparison to no longer be off by one.
Caveats
None that I am aware of, but if this triggers any actual bugs, it's probably extremely rare.
Notes
Based on discussion on Discord, brought to our attention by @luizzeroxis.
Description
Parsing GameMaker null-terminated strings had an off-by-one error in their bounds checks, so if a string appeared directly at the end of a stream, it would throw an exception. This corrects the comparison to no longer be off by one.
Caveats
None that I am aware of, but if this triggers any actual bugs, it's probably extremely rare.
Notes
Based on discussion on Discord, brought to our attention by @luizzeroxis.