comparison mvi.c @ 5232:ee0eaff74dd3 libavformat

Fix possible buffer over-read in vorbis_comment, fix it double to be sure. First, make s signed, so that comparisons against end - p will not be made as unsigned, making the check incorrectly pass if p is beyond end. Also ensure that p will never be > end, so the code is correct also if buf is not padded.
author reimar
date Thu, 24 Sep 2009 15:37:09 +0000
parents 1d3d17de20ba
children f84f69fc9d08
comparison
equal deleted inserted replaced
5231:d2e3bc991df4 5232:ee0eaff74dd3