mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 07:38:48 +00:00
image/jpeg: more bounds checking and skip malformed APP0
Also increase the maximum huffman symbols to 176
This commit is contained in:
committed by
Jeroen van Rijn
parent
8644f3beba
commit
694593c5f2
@@ -600,6 +600,7 @@ JPEG_Error :: enum {
|
||||
Encountered_RST_Marker_Outside_ECS,
|
||||
Extra_Data_After_SOS, // Image seemed to have decoded okay, but there's more data after SOS
|
||||
Invalid_Thumbnail_Size,
|
||||
Huffman_Symbols_Exceeds_Max,
|
||||
}
|
||||
|
||||
JFIF_Unit :: enum byte {
|
||||
|
||||
Reference in New Issue
Block a user