Fixed buffer overflow in bmp_load()

This commit is contained in:
Damjan Adamic
2014-10-25 19:35:52 +02:00
parent b6d1c13a5d
commit d5eed897fd
2 changed files with 8 additions and 0 deletions
+2
View File
@@ -264,6 +264,8 @@ TEST(Lcd, BMPWrapping)
bmpLoad(bitmap, "./tests/plane.bmp", 40, 40);
lcd_bmp(200, 0, bitmap);
lcd_bmp(200, 60, bitmap);
lcd_bmp(240, 60, bitmap); // x too big
lcd_bmp(20, 200, bitmap); // y too big
EXPECT_TRUE(checkScreenshot("bmpwrapping"));
}
#endif