[FFmpeg-devel] [PATCH] change the order of params for av_init_random()
Michael Niedermayer
michaelni
Mon Jan 5 17:00:50 CET 2009
On Mon, Jan 05, 2009 at 02:44:34AM +0100, Stefano Sabatini wrote:
[...]
> Index: ffmpeg/ffserver.c
> ===================================================================
> --- ffmpeg.orig/ffserver.c 2009-01-05 02:40:48.000000000 +0100
> +++ ffmpeg/ffserver.c 2009-01-05 02:41:00.000000000 +0100
> @@ -4483,7 +4483,7 @@
>
> unsetenv("http_proxy"); /* Kill the http_proxy */
>
> - av_init_random(av_gettime() + (getpid() << 16), &random_state);
> + av_random_init(&random_state, av_gettime() + (getpid() << 16));
>
> memset(&sigact, 0, sizeof(sigact));
> sigact.sa_handler = handle_child_exit;
do we really have to export the pid and starttime to an attacker?
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
Why not whip the teacher when the pupil misbehaves? -- Diogenes of Sinope
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20090105/d442b12b/attachment.pgp>
More information about the ffmpeg-devel
mailing list