diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-10-11 20:27:21 +0400 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-10-11 20:28:21 +0400 |
commit | 7fe55485315201ea2ca540e6e337bfaf4af086c5 (patch) | |
tree | fb2c5052c5a6dc9ee54f1e1c2dfb0556f95e4a4b /libavutil | |
parent | adcbb3fd8b23d8544dbb509e74703d8c0f8066cf (diff) |
random_seed: fix out of array read
Fixes CID733787
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavutil')
-rw-r--r-- | libavutil/random_seed.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavutil/random_seed.c b/libavutil/random_seed.c index d1a1fa645a..b594e82270 100644 --- a/libavutil/random_seed.c +++ b/libavutil/random_seed.c @@ -95,7 +95,7 @@ static uint32_t get_generic_seed(void) av_sha_init(sha, 160); av_sha_update(sha, (uint8_t*)buffer, sizeof(buffer)); av_sha_final(sha, digest); - return AV_RB32(digest) + AV_RB32(digest+32); + return AV_RB32(digest) + AV_RB32(digest+16); } uint32_t av_get_random_seed(void) |