On 06/01/2011 09:14 AM, Jan Friesse wrote: > with bits set to 1023, buf of 256 bytes was filled by rng_get_bytes > up to 257 bytes. Buf is now 258 bytes so it's no longer problem. > > Signed-off-by: Jan Friesse <jfrie...@redhat.com> > --- > exec/crypto.c | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a/exec/crypto.c b/exec/crypto.c > index e21aa16..901797a 100644 > --- a/exec/crypto.c > +++ b/exec/crypto.c > @@ -1314,7 +1314,7 @@ unsigned long rng_get_bytes(unsigned char *buf, > unsigned long len, > int rng_make_prng(int bits, int wprng, prng_state *prng, > void (*callback)(void)) > { > - unsigned char buf[256]; > + unsigned char buf[258]; > int err; > > if (bits < 64 || bits > 1024) {
Reviewed-by: Steven Dake <sd...@redhat.com> _______________________________________________ Openais mailing list Openais@lists.linux-foundation.org https://lists.linux-foundation.org/mailman/listinfo/openais