[SCM] libav/experimental: time & (s)rand is forbidden

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Jun 30 15:39:46 UTC 2013


The following commit has been merged in the experimental branch:
commit 7d1bbcd42fdb990dae849a1019e6b53cfe54a815
Author: Michael Niedermayer <michaelni at gmx.at>
Date:   Sun Apr 4 11:46:01 2004 +0000

    time & (s)rand is forbidden
    
    Originally committed as revision 2954 to svn://svn.ffmpeg.org/ffmpeg/trunk

diff --git a/libavcodec/common.h b/libavcodec/common.h
index 09643e1..0b4b1aa 100644
--- a/libavcodec/common.h
+++ b/libavcodec/common.h
@@ -1276,6 +1276,9 @@ tend= rdtsc();\
 #define malloc please_use_av_malloc
 #define free please_use_av_free
 #define realloc please_use_av_realloc
+#define time time_is_forbidden_due_to_security_issues
+#define rand rand_is_forbidden_due_to_state_trashing
+#define srand srand_is_forbidden_due_to_state_trashing
 #if !(defined(LIBAVFORMAT_BUILD) || defined(_FRAMEHOOK_H))
 #define printf please_use_av_log
 #define fprintf please_use_av_log

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list