[FFmpeg-devel] [PATCH] ffserver: local OOB write with custom program name
compn
tempn at mi.rr.com
Sun Jan 8 19:09:43 EET 2017
On Fri, 6 Jan 2017 23:33:16 +0100
Tobias Stoeckmann <tobias at stoeckmann.org> wrote:
> + slash = strrchr(my_program_name, '/');
> + memcpy(pathname, my_program_name, slash - my_program_name);
> - strcpy(slash, "ffmpeg");
> + strcat(pathname, "ffmpeg");
this replaces a strcpy with a memcpy, is this intended (and safe?)?
(possibly this is a dumb question, if so, please ignore this mail.)
-compn
More information about the ffmpeg-devel
mailing list