Page MenuHomeFreeBSD

D20686.diff
No OneTemporary

D20686.diff

Index: head/sys/dev/random/fortuna.c
===================================================================
--- head/sys/dev/random/fortuna.c
+++ head/sys/dev/random/fortuna.c
@@ -489,7 +489,7 @@
if (!random_chachamode)
chunk_size = rounddown(chunk_size, RANDOM_BLOCKSIZE);
- while (bytecount >= chunk_size) {
+ while (bytecount >= chunk_size && chunk_size > 0) {
randomdev_keystream(p_key, p_counter, buf, chunk_size);
buf += chunk_size;

File Metadata

Mime Type
text/plain
Expires
Sun, Jan 19, 9:46 AM (20 h, 28 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15938255
Default Alt Text
D20686.diff (451 B)

Event Timeline