OSDN Git Service
(root)
/
coroid
/
ffmpeg_saccubus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b58e298
)
Ban strncpy() it's too easy to misuse.
author
Alex Converse
<aconverse@google.com>
Tue, 3 May 2011 18:21:49 +0000
(11:21 -0700)
committer
Alex Converse
<alex.converse@gmail.com>
Sun, 8 May 2011 19:49:07 +0000
(12:49 -0700)
libavutil/internal.h
patch
|
blob
|
history
diff --git
a/libavutil/internal.h
b/libavutil/internal.h
index
37bc681
..
e890ae7
100644
(file)
--- 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