mirror of
https://github.com/webmproject/libwebp.git
synced 2025-02-24 21:12:47 +01:00
webpmux: fix loop_count range check
explicitly check [0, 65535], the use of 'long' was removed in a prior commit (cherry picked from commit 0e23c487dad7a1bd9b2cff409144910386823c15) Change-Id: I70d5bf286908459b5d4d619c657853f0e833b6ea
This commit is contained in:
parent
40b3a618ec
commit
94dadcb1a1
@ -939,7 +939,7 @@ static int Process(const WebPMuxConfig* config) {
|
|||||||
int parse_error = 0;
|
int parse_error = 0;
|
||||||
const int loop_count =
|
const int loop_count =
|
||||||
ExUtilGetInt(feature->args_[i].params_, 10, &parse_error);
|
ExUtilGetInt(feature->args_[i].params_, 10, &parse_error);
|
||||||
if (loop_count != (int)loop_count) {
|
if (loop_count < 0 || loop_count > 65535) {
|
||||||
// Note: This is only a 'necessary' condition for loop_count
|
// Note: This is only a 'necessary' condition for loop_count
|
||||||
// to be valid. The 'sufficient' conditioned in checked in
|
// to be valid. The 'sufficient' conditioned in checked in
|
||||||
// WebPMuxSetAnimationParams() method called later.
|
// WebPMuxSetAnimationParams() method called later.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user