[RTEMS Project] #4434: record-filter-zlib.cc: Uninitialized pointer field error spotted by Coverity
RTEMS trac
trac at rtems.org
Wed May 19 16:29:34 UTC 2021
#4434: record-filter-zlib.cc: Uninitialized pointer field error spotted by
Coverity
------------------------+--------------------
Reporter: Ryan Long | Owner: (none)
Type: defect | Status: new
Priority: normal | Milestone: 6.1
Component: tool | Version: 6
Severity: normal | Keywords:
Blocked By: | Blocking:
------------------------+--------------------
CID 1503020: Uninitialized pointer field in ZlibFilter().
{{{
36ZlibFilter::ZlibFilter() : buffer_(65536)
37{
CID 1503013: Unchecked return value from library (CHECKED_RETURN)
[select issue]
38 inflateInit(&stream_);
2. uninit_member: Non-static class member stream_.next_in is not
initialized in this constructor nor in any functions that it calls.
4. uninit_member: Non-static class member stream_.avail_in is not
initialized in this constructor nor in any functions that it calls.
6. uninit_member: Non-static class member stream_.total_in is not
initialized in this constructor nor in any functions that it calls.
8. uninit_member: Non-static class member stream_.next_out is not
initialized in this constructor nor in any functions that it calls.
10. uninit_member: Non-static class member stream_.avail_out is not
initialized in this constructor nor in any functions that it calls.
12. uninit_member: Non-static class member stream_.total_out is not
initialized in this constructor nor in any functions that it calls.
14. uninit_member: Non-static class member stream_.msg is not
initialized in this constructor nor in any functions that it calls.
16. uninit_member: Non-static class member stream_.zalloc is not
initialized in this constructor nor in any functions that it calls.
18. uninit_member: Non-static class member stream_.zfree is not
initialized in this constructor nor in any functions that it calls.
20. uninit_member: Non-static class member stream_.opaque is not
initialized in this constructor nor in any functions that it calls.
22. uninit_member: Non-static class member stream_.data_type is not
initialized in this constructor nor in any functions that it calls.
24. uninit_member: Non-static class member stream_.adler is not
initialized in this constructor nor in any functions that it calls.
CID 1503020 (#1 of 1): Uninitialized pointer field (UNINIT_CTOR)26.
uninit_member: Non-static class member stream_.reserved is not initialized
in this constructor nor in any functions that it calls.
39}
}}}
--
Ticket URL: <http://devel.rtems.org/ticket/4434>
RTEMS Project <http://www.rtems.org/>
RTEMS Project
More information about the bugs
mailing list