[FFmpeg-devel] [PATCH] forbid strcpy

Reimar Döffinger Reimar.Doeffinger
Sat Jan 30 16:34:29 CET 2010

this will cause a lot of build failures, so can't be applied as is, but
please all maintainers: either remove any strcpy uses from your copy or
complain now, or I take the freedom to modify your code without asking.
Index: libavutil/internal.h
--- libavutil/internal.h	(revision 21528)
+++ libavutil/internal.h	(working copy)
@@ -183,6 +183,8 @@
 #define sprintf sprintf_is_forbidden_due_to_security_issues_use_snprintf
 #undef  strcat
 #define strcat strcat_is_forbidden_due_to_security_issues_use_av_strlcat
+#undef  strcpy
+#define strcpy strcpy_is_forbidden_due_to_security_issues_use_av_strlcpy
 #undef  exit
 #define exit exit_is_forbidden

More information about the ffmpeg-devel mailing list