[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Commit-gnuradio] [gnuradio] 03/09: Fix: out-of-bounds memset
From: |
git |
Subject: |
[Commit-gnuradio] [gnuradio] 03/09: Fix: out-of-bounds memset |
Date: |
Mon, 6 Apr 2015 14:30:33 +0000 (UTC) |
This is an automated email from the git hooks/post-receive script.
jcorgan pushed a commit to branch master
in repository gnuradio.
commit 9ac802560be1cab3601c74a9ad2af96118d8ea6f
Author: Marcus Müller <address@hidden>
Date: Mon Apr 6 10:16:40 2015 +0200
Fix: out-of-bounds memset
Ron says:
>Marcus,
>
>Looks like a copy and paste bug. I must have copied line 1149:
>
>int plen = FRAME_SIZE_SHORT - NBCH_1_4;
>
>from the previous function add_l1pre().
>
>So the fix would be to change line 1324 to:
>
>int plen = FRAME_SIZE_SHORT - NBCH_1_2;
---
gr-dtv/lib/dvbt2/dvbt2_framemapper_cc_impl.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gr-dtv/lib/dvbt2/dvbt2_framemapper_cc_impl.cc
b/gr-dtv/lib/dvbt2/dvbt2_framemapper_cc_impl.cc
index c3702e0..a09af90 100644
--- a/gr-dtv/lib/dvbt2/dvbt2_framemapper_cc_impl.cc
+++ b/gr-dtv/lib/dvbt2/dvbt2_framemapper_cc_impl.cc
@@ -1321,7 +1321,7 @@ namespace gr {
int temp, offset_bits = 0;
unsigned char b, value;
unsigned int shift[6];
- int plen = FRAME_SIZE_SHORT - NBCH_1_4;
+ int plen = FRAME_SIZE_SHORT - NBCH_1_2;
const unsigned char *d;
unsigned char *p;
unsigned char *l1post = l1_interleave;
- [Commit-gnuradio] [gnuradio] branch master updated (93c25bc -> dc6c212), git, 2015/04/06
- [Commit-gnuradio] [gnuradio] 08/09: Merge remote-tracking branch 'mmueller/coverity_gr_blocks_1216153', git, 2015/04/06
- [Commit-gnuradio] [gnuradio] 06/09: Merge remote-tracking branch 'mmueller/coverity_gr_fec_1293327', git, 2015/04/06
- [Commit-gnuradio] [gnuradio] 09/09: Merge remote-tracking branch 'mmueller/gr_fec_async_encoder_signage', git, 2015/04/06
- [Commit-gnuradio] [gnuradio] 05/09: fixed signed/unsigned comparison, git, 2015/04/06
- [Commit-gnuradio] [gnuradio] 07/09: Merge remote-tracking branch 'mmueller/coverity_gr_dtv_1293311', git, 2015/04/06
- [Commit-gnuradio] [gnuradio] 01/09: Fixing memset(..,0xCCCC,...), git, 2015/04/06
- [Commit-gnuradio] [gnuradio] 03/09: Fix: out-of-bounds memset,
git <=
- [Commit-gnuradio] [gnuradio] 04/09: removed unused d_k member, git, 2015/04/06
- [Commit-gnuradio] [gnuradio] 02/09: fixed printf("%d", size_t), git, 2015/04/06