[X9D] Buffer overflow in BMP code

[X9D] External clock for RTC
This commit is contained in:
bernet.andre@gmail.com
2013-01-10 09:55:14 +00:00
parent 20900734b8
commit d82e8a9359
4 changed files with 7 additions and 4 deletions
+1 -1
View File
@@ -116,7 +116,7 @@ const pm_char * bmpLoad(uint8_t *dest, const char *filename)
return STR_INCOMPATIBLE;
}
if (width > 64 || height > 32) {
if (width > MODEL_BITMAP_WIDTH || height > MODEL_BITMAP_HEIGHT) {
f_close(&bmpFile);
return STR_INCOMPATIBLE;
}