mirror of https://git.ffmpeg.org/ffmpeg.git
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
This commit is contained in:
parent
573e0118e2
commit
9f5da4d189
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue