[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Commit-gnuradio] [gnuradio] 05/07: Fixes Cov Defect 1043301: Unitialize
From: |
git |
Subject: |
[Commit-gnuradio] [gnuradio] 05/07: Fixes Cov Defect 1043301: Unitialized Variable in Conditional |
Date: |
Sun, 30 Aug 2015 21:20:01 +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 c173b20994a2d230a8200ea20b37da936c89fe7b
Author: Ben Hilburn <address@hidden>
Date: Fri Aug 28 21:05:12 2015 -0700
Fixes Cov Defect 1043301: Unitialized Variable in Conditional
`extra_len` was declared but not initialized except in a conditional code
path,
after which it was compared to zero. It is now initialized to zero in case
the
conditional code path is not taken.
---
gr-blocks/lib/file_meta_source_impl.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gr-blocks/lib/file_meta_source_impl.cc
b/gr-blocks/lib/file_meta_source_impl.cc
index 5686945..4cb0ab8 100644
--- a/gr-blocks/lib/file_meta_source_impl.cc
+++ b/gr-blocks/lib/file_meta_source_impl.cc
@@ -159,7 +159,7 @@ namespace gr {
hdr = pmt::deserialize_str(str);
delete [] hdr_buffer;
- uint64_t seg_start, extra_len;
+ uint64_t seg_start, extra_len = 0;
pmt::pmt_t r, dump;
if(pmt::dict_has_key(hdr, pmt::string_to_symbol("strt"))) {
r = pmt::dict_ref(hdr, pmt::string_to_symbol("strt"), dump);
- [Commit-gnuradio] [gnuradio] branch maint updated (d063b05 -> 7be615c), git, 2015/08/30
- [Commit-gnuradio] [gnuradio] 01/07: lms_dd_equalizer_cc.h: Fixing simple documentation typo., git, 2015/08/30
- [Commit-gnuradio] [gnuradio] 05/07: Fixes Cov Defect 1043301: Unitialized Variable in Conditional,
git <=
- [Commit-gnuradio] [gnuradio] 04/07: Fixes Cov Defect 1046011: Resource Leak, git, 2015/08/30
- [Commit-gnuradio] [gnuradio] 07/07: Merge remote-tracking branch 'spectrejan/qa_multiply_matrix_ff' into maint, git, 2015/08/30
- [Commit-gnuradio] [gnuradio] 06/07: + Fixed Bug in qa_multiply_matrix_ff test_005_t, git, 2015/08/30
- [Commit-gnuradio] [gnuradio] 03/07: Addresses Defects 1046385 & 1046340: Buffer not NULL-terminated, git, 2015/08/30
- [Commit-gnuradio] [gnuradio] 02/07: Addresses Defects 1046385 & 1046340: Out-of-bounds access, git, 2015/08/30