Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
RE_GenerateTexture: endlessly incrementing global signed integer is asking for overflow #271
Everytime a libRocket element is displayed for the first time, this global signed integer is incremented, but this is never reset on map load, hence this global variable is incremented endlessly:
I found this while I was hacking with sRGB stuff: I was looking for that new
This may be somewhat safe as it's only building a string, then negative values are just printed into that string:
It may be better to fix it in any way, and make sure there is no more libRocket texture allocated than the number of names we can produce, because maybe a random game code can ask engine to create a lot of textures in order to generate more than the total number of positive and negative values.