pyridine/REXSpeeder

Buffer overflow

ad8e opened this issue · 4 comments

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.

You're right. I'll make sure it gives an error if the maximum is violated. Thanks!

Fixed by 65e16a3