aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/entropy/proc_walk/proc_walk.cpp
diff options
context:
space:
mode:
authorSimon Warta <[email protected]>2015-06-28 13:47:37 +0200
committerSimon Warta <[email protected]>2015-06-28 13:47:37 +0200
commitdc5716db695462217390ddfc7c9189294493600a (patch)
tree43c90714200839d62b0211543bb89c7541167d6c /src/lib/entropy/proc_walk/proc_walk.cpp
parent7f904a4019a27628c145724e8c0bfcbfacb18e11 (diff)
parentd007082daa03ddebd124c38393f42793a1b50811 (diff)
Merge pull request #144 from webmaster128/bounds-check5
Bounds check round 5
Diffstat (limited to 'src/lib/entropy/proc_walk/proc_walk.cpp')
-rw-r--r--src/lib/entropy/proc_walk/proc_walk.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/entropy/proc_walk/proc_walk.cpp b/src/lib/entropy/proc_walk/proc_walk.cpp
index 1501f0774..217ed5a52 100644
--- a/src/lib/entropy/proc_walk/proc_walk.cpp
+++ b/src/lib/entropy/proc_walk/proc_walk.cpp
@@ -133,11 +133,11 @@ void ProcWalking_EntropySource::poll(Entropy_Accumulator& accum)
break;
}
- ssize_t got = ::read(fd, &m_buf[0], m_buf.size());
+ ssize_t got = ::read(fd, m_buf.data(), m_buf.size());
::close(fd);
if(got > 0)
- accum.add(&m_buf[0], got, ENTROPY_ESTIMATE);
+ accum.add(m_buf.data(), got, ENTROPY_ESTIMATE);
if(accum.polling_finished())
break;