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:
parent
b58e298572
commit
1569554153
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user