aboutsummaryrefslogtreecommitdiffstats
path: root/src/entropy/beos_stats
diff options
context:
space:
mode:
authorlloyd <[email protected]>2008-11-23 19:27:35 +0000
committerlloyd <[email protected]>2008-11-23 19:27:35 +0000
commit3a52b1f1123e532209bf6318fdb5195a9d450473 (patch)
treea54c0916c2202e5c11bbfb58637dc74251c11f61 /src/entropy/beos_stats
parent2836919541635b1193212df2b24c6407f663c9f8 (diff)
Limit the output size of fast polls by the BeOS, Unix, and Win32 entropy
pollers that grab basic statistical data to 32 bytes.
Diffstat (limited to 'src/entropy/beos_stats')
-rw-r--r--src/entropy/beos_stats/es_beos.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/entropy/beos_stats/es_beos.cpp b/src/entropy/beos_stats/es_beos.cpp
index 0fd9199bd..b5a5e7fee 100644
--- a/src/entropy/beos_stats/es_beos.cpp
+++ b/src/entropy/beos_stats/es_beos.cpp
@@ -19,6 +19,7 @@ u32bit BeOS_EntropySource::fast_poll(byte buf[], u32bit length)
{
if(length == 0)
return 0;
+ length = std::min<u32bit>(length, 32);
u32bit buf_i = 0;