You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
probetest: check command line arguments
Fixes CID733835 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -63,6 +63,16 @@ int main(int argc, char **argv)
|
|||||||
if(argc >= 3)
|
if(argc >= 3)
|
||||||
max_size = atoi(argv[2]);
|
max_size = atoi(argv[2]);
|
||||||
|
|
||||||
|
if (max_size > 1000000000U/8) {
|
||||||
|
fprintf(stderr, "max_size out of bounds\n");
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (retry_count > 1000000000U) {
|
||||||
|
fprintf(stderr, "retry_count out of bounds\n");
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
|
||||||
avcodec_register_all();
|
avcodec_register_all();
|
||||||
av_register_all();
|
av_register_all();
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user