[FFmpeg-devel] [PATCH] webm_dash_manifest_demuxer: Fix UB in cue timestamp string code and make it actually work
Derek Buitenhuis
derek.buitenhuis at gmail.com
Thu Apr 20 18:04:30 EEST 2017
On 4/20/2017 3:58 PM, Michael Niedermayer wrote:
> On Thu, Apr 20, 2017 at 03:02:54PM +0100, Derek Buitenhuis wrote:
>> The original author apparently never read the documentation for snprintf,
>> or even tested that the output was correct.
> This statement does not belong in a commit message.
> Its insulting to whoever the author is and may not even be true.
Removed. However it /definitely/ was not tested properly.
New message:
Output was apparently not tested for correctness. Passing overlapping
memory to snprintf causes undefined behavior, and usually resulted in
only the very last timestamp being written to metadata, and not a list
at all.
- Derek
More information about the ffmpeg-devel
mailing list