adventuregamestudio / ags

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

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

Open ivan-mogilko opened 3 weeks ago

ivan-mogilko commented 3 weeks 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.