mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-28 21:28:55 +00:00
Fix crash caused by zeroing a larger buffer than the caller passed in.
This commit is contained in:
parent
1818f084e5
commit
1a81db9b8a
@ -31,7 +31,7 @@
|
||||
* may use your version of this file under either the MPL or the
|
||||
* GPL.
|
||||
*
|
||||
* $Id: prng_fips1861.c,v 1.3 2000/07/20 16:58:32 mcgreer%netscape.com Exp $
|
||||
* $Id: prng_fips1861.c,v 1.4 2000/08/08 05:56:56 nelsonb%netscape.com Exp $
|
||||
*/
|
||||
|
||||
#include "prerr.h"
|
||||
@ -334,7 +334,7 @@ prng_RandomUpdate(RNGContext *rng, void *data, size_t bytes, unsigned char *q)
|
||||
/* --- UNLOCKED --- */
|
||||
/* housekeeping */
|
||||
memset(inputhash, 0, BSIZE);
|
||||
memset(data, 0, BSIZE); /* let the caller free */
|
||||
/* memset(data, 0, BSIZE); /* let the caller free */
|
||||
return rv;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user