[Ffmpeg-devel] Genre information is not retrieved from asf files (hence also from wma files) - patch provided

Måns Rullgård mru
Fri May 20 23:36:36 CEST 2005


Ronen Mizrahi <ronen at tversity.com> writes:

> I have noticed that the genere is not extracted from asf headers of
> asf files, and I patched it so that it will. The only problem is that
> I am a newbie with ffmpeg and I am not familiar with your patching
> methods. Until I will become more familiar with them I thought I will
> just post here the one line of code I added so that others can also
> use it. If there is anyone of the more experienced people that
> wouldn't mind adding this line to asf.c I would be very grateful.
>
> After line 335 which currently says:
>
> if (strcmp(name,"WM/AlbumTitle")==0) { pstrcpy(s->album, sizeof(s->album), value); }
>
> I added:
>
> else if (strcmp(name, "WM/Genre")==0) { strcpy(s->genre, value); }

Potential buffer overflow.

-- 
M?ns Rullg?rd
mru at inprovide.com





More information about the ffmpeg-devel mailing list