Le tridi 13 fructidor, an CCXXII, Stefano Sabatini a écrit : > It is mathematically impossible that the length will be larger than 5. > Added an assert for that though, alternatively I could add a check.
In ffprobe, the function is used with values coming directly from the file's metadata: an assert is not acceptable in this case. Furthermore, the function is capable of decoding the full UTF-8 range, up to (1<<31)-1, and that takes 6 octets. Also, I suspect checking for overlong encodings could have a flag just like the other extraneous checks below. Regards, -- Nicolas George
signature.asc
Description: Digital signature
_______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel