adventuregamestudio / ags

AGS editor and engine source code
Other
708 stars 159 forks source link

AGS 4: catching missed bytecode overflows in the new Compiler #2417

Closed ivan-mogilko closed 3 months ago

ivan-mogilko commented 6 months ago

Small buffer overflows are never detected, because bytecode buffer is always allocated with extra capacity. But #2411 made this problem come to surface.

This is not yet for merging, the purpose is to catch known overflow errors, and be able to investigate and fix them.

EDIT: need to find out which exception type would be best there, new Compiler introduces couple of exception types.

ivan-mogilko commented 3 months ago

Made obsolete by #2510.