Skip to content
Snippets Groups Projects
Commit 9f5da4d1 authored by Diego Biurrun's avatar Diego Biurrun
Browse files

When warning about forbidden pseudo random number generation functions,

suggest the correct replacement functions.

Originally committed as revision 18114 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 573e0118
No related branches found
No related tags found
No related merge requests found
...@@ -224,11 +224,11 @@ if((y)<(x)){\ ...@@ -224,11 +224,11 @@ if((y)<(x)){\
#undef time #undef time
#define time time_is_forbidden_due_to_security_issues #define time time_is_forbidden_due_to_security_issues
#undef rand #undef rand
#define rand rand_is_forbidden_due_to_state_trashing_use_av_random #define rand rand_is_forbidden_due_to_state_trashing_use_av_lfg_get
#undef srand #undef srand
#define srand srand_is_forbidden_due_to_state_trashing_use_av_random_init #define srand srand_is_forbidden_due_to_state_trashing_use_av_lfg_init
#undef random #undef random
#define random random_is_forbidden_due_to_state_trashing_use_av_random #define random random_is_forbidden_due_to_state_trashing_use_av_lfg_get
#undef sprintf #undef sprintf
#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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment