mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-28 20:55:39 +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
|
* may use your version of this file under either the MPL or the
|
||||||
* GPL.
|
* 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"
|
#include "prerr.h"
|
||||||
@ -334,7 +334,7 @@ prng_RandomUpdate(RNGContext *rng, void *data, size_t bytes, unsigned char *q)
|
|||||||
/* --- UNLOCKED --- */
|
/* --- UNLOCKED --- */
|
||||||
/* housekeeping */
|
/* housekeeping */
|
||||||
memset(inputhash, 0, BSIZE);
|
memset(inputhash, 0, BSIZE);
|
||||||
memset(data, 0, BSIZE); /* let the caller free */
|
/* memset(data, 0, BSIZE); /* let the caller free */
|
||||||
return rv;
|
return rv;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user