Jump to content
  • Advertisement
Sign in to follow this  
FDsagizi

CScriptBuilder bug

This topic is 2109 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi smile.png

if defined AS_PROCESS_METADATA - CScriptBuilder crash on this script code:

std::string script = "class "; Edited by Andreas Jonsson

Share this post


Link to post
Share on other sites
Advertisement
I couldn't reproduce the crash. But I made some code changes in revision 1427 that I think may have caused the crash for you.

Let me know if the problem still persists.

Share this post


Link to post
Share on other sites
What compiler are you using?

I can only imagine the crash is due to the modifiedScript[pos] accessing one byte beyond the size of the string. Still, the code is only reading from this position, so it shouldn't crash.

Share this post


Link to post
Share on other sites
I've made another change in revision 1428, so now the modifiedScript[pos] won't be called when the position is already beyond the size of the script.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!