[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Commit-gnuradio] [gnuradio] 01/05: Update dvbt_bit_inner_interleaver_im
From: |
git |
Subject: |
[Commit-gnuradio] [gnuradio] 01/05: Update dvbt_bit_inner_interleaver_impl.cc |
Date: |
Mon, 1 Aug 2016 21:58:54 +0000 (UTC) |
This is an automated email from the git hooks/post-receive script.
jcorgan pushed a commit to branch maint
in repository gnuradio.
commit 895413ea888ef91a3c9ec6332af81ccef5a2f6e3
Author: Artem Pisarenko <address@hidden>
Date: Sat Jul 30 19:01:31 2016 +0600
Update dvbt_bit_inner_interleaver_impl.cc
Fix out-of-bounds access to array (segmentation fault).
---
gr-dtv/lib/dvbt/dvbt_bit_inner_interleaver_impl.cc | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/gr-dtv/lib/dvbt/dvbt_bit_inner_interleaver_impl.cc
b/gr-dtv/lib/dvbt/dvbt_bit_inner_interleaver_impl.cc
index d2bfb3d..a5a9847 100644
--- a/gr-dtv/lib/dvbt/dvbt_bit_inner_interleaver_impl.cc
+++ b/gr-dtv/lib/dvbt/dvbt_bit_inner_interleaver_impl.cc
@@ -118,8 +118,9 @@ namespace gr {
void
dvbt_bit_inner_interleaver_impl::forecast (int noutput_items,
gr_vector_int &ninput_items_required)
{
- ninput_items_required[0] = noutput_items;
- ninput_items_required[1] = noutput_items;
+ unsigned ninputs = ninput_items_required.size();
+ for (unsigned i = 0; i < ninputs; i++)
+ ninput_items_required[i] = noutput_items;
}
int