comparison internal.h @ 703:b386bd0fad52 libavutil

When warning about forbidden pseudo random number generation functions, suggest the correct replacement functions.
author diego
date Sat, 21 Mar 2009 16:16:04 +0000
parents 361d5a76087d
children 9c9a242f840c
comparison
equal deleted inserted replaced
702:ef2c3d23d344 703:b386bd0fad52
222 #undef realloc 222 #undef realloc
223 #define realloc please_use_av_realloc 223 #define realloc please_use_av_realloc
224 #undef time 224 #undef time
225 #define time time_is_forbidden_due_to_security_issues 225 #define time time_is_forbidden_due_to_security_issues
226 #undef rand 226 #undef rand
227 #define rand rand_is_forbidden_due_to_state_trashing_use_av_random 227 #define rand rand_is_forbidden_due_to_state_trashing_use_av_lfg_get
228 #undef srand 228 #undef srand
229 #define srand srand_is_forbidden_due_to_state_trashing_use_av_random_init 229 #define srand srand_is_forbidden_due_to_state_trashing_use_av_lfg_init
230 #undef random 230 #undef random
231 #define random random_is_forbidden_due_to_state_trashing_use_av_random 231 #define random random_is_forbidden_due_to_state_trashing_use_av_lfg_get
232 #undef sprintf 232 #undef sprintf
233 #define sprintf sprintf_is_forbidden_due_to_security_issues_use_snprintf 233 #define sprintf sprintf_is_forbidden_due_to_security_issues_use_snprintf
234 #undef strcat 234 #undef strcat
235 #define strcat strcat_is_forbidden_due_to_security_issues_use_av_strlcat 235 #define strcat strcat_is_forbidden_due_to_security_issues_use_av_strlcat
236 #undef exit 236 #undef exit