libheif-1.19.7-1.fc43

List of Findings

Error: CPPCHECK_WARNING (CWE-476): [#def1]
libheif-1.19.7/heifio/decoder_png.cc:320: error[nullPointer]: Null pointer dereference: pa
#  318|   
#  319|             py[x + y * y_stride] = vp;
#  320|->           pa[x + y * y_stride] = va;
#  321|   
#  322|             p += 4;

Error: CPPCHECK_WARNING (CWE-909): [#def2]
libheif-1.19.7/libheif/codecs/jpeg2000_boxes.cc:142: error[uninitStructMember]: Uninitialized struct member: component.component_align_size
#  140|       component.mapping_type = range.read8();
#  141|       component.palette_colour = range.read8();
#  142|->     m_components.push_back(component);
#  143|     }
#  144|   

Error: CPPCHECK_WARNING (CWE-909): [#def3]
libheif-1.19.7/libheif/codecs/jpeg2000_boxes.cc:142: error[uninitStructMember]: Uninitialized struct member: component.component_bit_depth
#  140|       component.mapping_type = range.read8();
#  141|       component.palette_colour = range.read8();
#  142|->     m_components.push_back(component);
#  143|     }
#  144|   

Error: CPPCHECK_WARNING (CWE-909): [#def4]
libheif-1.19.7/libheif/codecs/jpeg2000_boxes.cc:142: error[uninitStructMember]: Uninitialized struct member: component.component_format
#  140|       component.mapping_type = range.read8();
#  141|       component.palette_colour = range.read8();
#  142|->     m_components.push_back(component);
#  143|     }
#  144|   

Error: CPPCHECK_WARNING (CWE-909): [#def5]
libheif-1.19.7/libheif/codecs/jpeg2000_boxes.cc:142: error[uninitStructMember]: Uninitialized struct member: component.component_type
#  140|       component.mapping_type = range.read8();
#  141|       component.palette_colour = range.read8();
#  142|->     m_components.push_back(component);
#  143|     }
#  144|   

Error: CPPCHECK_WARNING (CWE-909): [#def6]
libheif-1.19.7/libheif/codecs/uncompressed/unc_boxes.cc:167: error[uninitStructMember]: Uninitialized struct member: component.component_align_size
#  165|         component.component_type_uri = std::string();
#  166|       }
#  167|->     m_components.push_back(component);
#  168|     }
#  169|   

Error: CPPCHECK_WARNING (CWE-909): [#def7]
libheif-1.19.7/libheif/codecs/uncompressed/unc_boxes.cc:167: error[uninitStructMember]: Uninitialized struct member: component.component_bit_depth
#  165|         component.component_type_uri = std::string();
#  166|       }
#  167|->     m_components.push_back(component);
#  168|     }
#  169|   

Error: CPPCHECK_WARNING (CWE-909): [#def8]
libheif-1.19.7/libheif/codecs/uncompressed/unc_boxes.cc:167: error[uninitStructMember]: Uninitialized struct member: component.component_format
#  165|         component.component_type_uri = std::string();
#  166|       }
#  167|->     m_components.push_back(component);
#  168|     }
#  169|   

Error: CPPCHECK_WARNING (CWE-909): [#def9]
libheif-1.19.7/libheif/codecs/uncompressed/unc_boxes.cc:167: error[uninitStructMember]: Uninitialized struct member: component.component_index
#  165|         component.component_type_uri = std::string();
#  166|       }
#  167|->     m_components.push_back(component);
#  168|     }
#  169|   

Error: CPPCHECK_WARNING (CWE-909): [#def10]
libheif-1.19.7/libheif/codecs/uncompressed/unc_boxes.cc:269: error[uninitStructMember]: Uninitialized struct member: component.component_type
#  267|         component.component_format = range.read8();
#  268|         component.component_align_size = range.read8();
#  269|->       m_components.push_back(component);
#  270|   
#  271|         if (!is_valid_component_format(component.component_format)) {

Scan Properties

analyzer-version-clippy1.86.0
analyzer-version-cppcheck2.17.1
analyzer-version-gcc15.0.1
analyzer-version-gcc-analyzer15.0.1
analyzer-version-shellcheck0.10.0
analyzer-version-unicontrol0.0.2
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-112.us-west-2.compute.internal
known-false-positives/usr/share/csmock/known-false-positives.js
known-false-positives-rpmknown-false-positives-0.0.0.20250425.124705.g1c7c448.main-1.el9.noarch
mock-configfedora-rawhide-x86_64
project-namelibheif-1.19.7-1.fc43
store-results-to/tmp/tmplgheq0ep/libheif-1.19.7-1.fc43.tar.xz
time-created2025-04-25 14:00:07
time-finished2025-04-25 14:03:48
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'unicontrol,cppcheck,gcc,clippy,shellcheck' '-o' '/tmp/tmplgheq0ep/libheif-1.19.7-1.fc43.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmplgheq0ep/libheif-1.19.7-1.fc43.src.rpm'
tool-versioncsmock-3.8.1.20250422.172604.g26bc3d6-1.el9