Buffer overflow
ad8e opened this issue · 4 comments
ad8e commented
If input file has more than 4 layers. https://github.com/pyridine/REXSpeeder/blob/master/src/REXSpeeder.cpp#L77
pyridine commented
No valid REXPaint file can have more than four layers, as stated in the manual.
But it might be useful to ensure this with a warning or error, for both saving and loading.
ad8e commented
What if someone unsavory makes his own special REXPaint file? You can't be sure that your file is validly crafted.
pyridine commented
You're right. I'll make sure it gives an error if the maximum is violated. Thanks!