[FFmpeg-cvslog] Ban strncpy() it's too easy to misuse.
Alex Converse
git at videolan.org
Mon May 9 04:48:13 CEST 2011
ffmpeg | branch: master | Alex Converse <aconverse at google.com> | Tue May 3 11:21:49 2011 -0700| [15695541538ae118ffedb8e8c821d242caaa0be4] | committer: Alex Converse
Ban strncpy() it's too easy to misuse.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=15695541538ae118ffedb8e8c821d242caaa0be4
---
libavutil/internal.h | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/libavutil/internal.h b/libavutil/internal.h
index 37bc681..e890ae7 100644
--- a/libavutil/internal.h
+++ b/libavutil/internal.h
@@ -137,6 +137,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 strncpy
+#define strncpy strncpy_is_forbidden_due_to_security_issues_use_av_strlcpy
#undef exit
#define exit exit_is_forbidden
#ifndef LIBAVFORMAT_BUILD
More information about the ffmpeg-cvslog
mailing list