1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-11-21 10:55:51 +02:00

Ban strncpy() it's too easy to misuse.

This commit is contained in:
Alex Converse 2011-05-03 11:21:49 -07:00 committed by Alex Converse
parent b58e298572
commit 1569554153

View File

@ -137,6 +137,8 @@
#define sprintf sprintf_is_forbidden_due_to_security_issues_use_snprintf #define sprintf sprintf_is_forbidden_due_to_security_issues_use_snprintf
#undef strcat #undef strcat
#define strcat strcat_is_forbidden_due_to_security_issues_use_av_strlcat #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 #undef exit
#define exit exit_is_forbidden #define exit exit_is_forbidden
#ifndef LIBAVFORMAT_BUILD #ifndef LIBAVFORMAT_BUILD