mirror of
https://github.com/webmproject/libwebp.git
synced 2025-07-16 05:49:51 +02:00
Fix asserts in Palette and BackwardReference code.
Fix inequality assertion on number of palette colors. Fix inequality assertion test in BackwardReferencesHashChainFollowChosenPath. Change-Id: Ie3242f1bbeaf96db91b839b6732ccce2634cebf3
This commit is contained in:
@ -613,7 +613,7 @@ static int BackwardReferencesHashChainFollowChosenPath(
|
||||
++i;
|
||||
}
|
||||
}
|
||||
assert(size < refs->max_size);
|
||||
assert(size <= refs->max_size);
|
||||
refs->size = size;
|
||||
ok = 1;
|
||||
Error:
|
||||
|
Reference in New Issue
Block a user