mirror of
https://github.com/webmproject/libwebp.git
synced 2026-04-09 06:12:32 +02:00
Fix PNM decoder in case of missing tags
Change-Id: I6a760ff02d94f6af969d483e3f3e2731ad7eb41e
This commit is contained in:
@@ -127,7 +127,7 @@ static size_t ReadPAMFields(PNMInfo* const info, size_t off) {
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
if (!(info->seen_flags & ALL_NEEDED_FLAGS)) {
|
||||
if ((info->seen_flags & ALL_NEEDED_FLAGS) != ALL_NEEDED_FLAGS) {
|
||||
fprintf(stderr, "PAM header error: missing tags%s%s%s%s\n",
|
||||
(info->seen_flags & WIDTH_FLAG) ? "" : " WIDTH",
|
||||
(info->seen_flags & HEIGHT_FLAG) ? "" : " HEIGHT",
|
||||
|
||||
Reference in New Issue
Block a user