Revision 84662c01 libavutil/internal.h

View differences:

libavutil/internal.h
234 234
#endif
235 235

  
236 236
/* avoid usage of various functions */
237
#undef  malloc
237 238
#define malloc please_use_av_malloc
239
#undef  free
238 240
#define free please_use_av_free
241
#undef  realloc
239 242
#define realloc please_use_av_realloc
243
#undef  time
240 244
#define time time_is_forbidden_due_to_security_issues
245
#undef  rand
241 246
#define rand rand_is_forbidden_due_to_state_trashing_use_av_random
247
#undef  srand
242 248
#define srand srand_is_forbidden_due_to_state_trashing_use_av_init_random
249
#undef  random
243 250
#define random random_is_forbidden_due_to_state_trashing_use_av_random
251
#undef  sprintf
244 252
#define sprintf sprintf_is_forbidden_due_to_security_issues_use_snprintf
253
#undef  strcat
245 254
#define strcat strcat_is_forbidden_due_to_security_issues_use_av_strlcat
255
#undef  exit
246 256
#define exit exit_is_forbidden
247 257
#if !(defined(LIBAVFORMAT_BUILD) || defined(FRAMEHOOK_H))
258
#undef  printf
248 259
#define printf please_use_av_log
260
#undef  fprintf
249 261
#define fprintf please_use_av_log
250 262
#endif
251 263

  

Also available in: Unified diff