[vlc-devel] [PATCH] Re: sprintf() +n

jpd at m2x.nl jpd at m2x.nl
Tue May 19 10:44:13 CEST 2009


On Mon, May 18, 2009 18:49, remi at wrote:
> Le lundi 18 mai 2009 10:36:56 jpd at m2x.nl, vous avez ?crit :
>> Fix a potential buffer overflow and refactor a bit.
>>
>> This seems correct but wasn't thoroughly tested.
>
> I think the number of modifiers does not equate the number of keys.

I think that a correct observation. Attached a revised patch with a more
general solution to that particular problem. Also not thorougly tested,
especially as I cannot test wince.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-sprintf-n-in-file.c-plus-add-and-use-vlc_num_keys.patch
Type: text/x-patch
Size: 5514 bytes
Desc: not available
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20090519/5482f822/attachment.bin>


More information about the vlc-devel mailing list