[FFmpeg-devel] check size of stsc allocation

Carl Eugen Hoyos ceffmpeg at gmail.com
Tue Nov 14 03:57:54 EET 2017


2017-11-14 2:08 GMT+01:00 Fredrik Hubinette <hubbe-at-google.com at ffmpeg.org>:

> +    if (((size_t)entries) * 12 + 4 > atom.size)

This gets much more readable if the cast is to uint64_t.
And I guess not all the parenthesis are necessary.

It seems your mailer has eaten the patch, send it as attachment.

Carl Eugen


More information about the ffmpeg-devel mailing list