Fixed defects

List of Defects

Error: COMPILER_WARNING (CWE-476): [#def1]
kpipewire-6.0.3-build/kpipewire-6.0.3/src/pipewirerecord.cpp: scope_hint: In member function ‘PipeWireRecordProduce::cleanup()’
kpipewire-6.0.3-build/kpipewire-6.0.3/src/pipewirerecord.cpp:199:33: warning[-Wnonnull]: ‘this’ pointer is null
#  199 |         m_encoder->receivePacket();
#      |         ~~~~~~~~~~~~~~~~~~~~~~~~^~
cc1plus: note: unrecognized command-line option ‘-Wno-c99-extensions’ may have been intended to silence earlier diagnostics
cc1plus: note: unrecognized command-line option ‘-Wno-gnu-statement-expression-from-macro-expansion’ may have been intended to silence earlier diagnostics
#  197|       if (!m_encoder) {
#  198|           // Clear the queue of encoded packets.
#  199|->         m_encoder->receivePacket();
#  200|       }
#  201|   

Error: COMPILER_WARNING (CWE-477): [#def2]
kpipewire-6.0.3-build/kpipewire-6.0.3/src/pipewiresourceitem.cpp: scope_hint: In member function ‘virtual void PipeWireSourceItem::releaseResources()’
kpipewire-6.0.3-build/kpipewire-6.0.3/src/pipewiresourceitem.cpp:120:95: warning[-Wdeprecated-declarations]: ‘T* QScopedPointer<T, Cleanup>::take() [with T = QOpenGLTexture; Cleanup = QScopedPointerDeleter<QOpenGLTexture>]’ is deprecated: Use std::unique_ptr instead, and call release().
#  120 |         window()->scheduleRenderJob(new DiscardEglPixmapRunnable(d->m_image, d->m_texture.take()), QQuickWindow::NoStage);
#      |                                                                              ~~~~~~~~~~~~~~~~~^~
/usr/include/qt6/QtCore/qdatastream.h:7: included_from: Included from here.
/usr/include/qt6/QtGui/qregion.h:14: included_from: Included from here.
/usr/include/qt6/QtGui/qtransform.h:8: included_from: Included from here.
/usr/include/qt6/QtGui/qimage.h:12: included_from: Included from here.
/usr/include/qt6/QtGui/QImage:1: included_from: Included from here.
kpipewire-6.0.3-build/kpipewire-6.0.3/src/pipewiresourceitem.h:10: included_from: Included from here.
kpipewire-6.0.3-build/kpipewire-6.0.3/src/pipewiresourceitem.cpp:8: included_from: Included from here.
/usr/include/qt6/QtCore/qscopedpointer.h:130:8: note: declared here
#  130 |     T *take() noexcept
#      |        ^~~~
cc1plus: note: unrecognized command-line option ‘-Wno-c99-extensions’ may have been intended to silence earlier diagnostics
cc1plus: note: unrecognized command-line option ‘-Wno-gnu-statement-expression-from-macro-expansion’ may have been intended to silence earlier diagnostics
#  118|   {
#  119|       if (window() && (d->m_image || d->m_texture)) {
#  120|->         window()->scheduleRenderJob(new DiscardEglPixmapRunnable(d->m_image, d->m_texture.take()), QQuickWindow::NoStage);
#  121|           d->m_image = EGL_NO_IMAGE_KHR;
#  122|       }

Scan Properties

analyzer-version-clang18.1.7
analyzer-version-cppcheck2.14.2
analyzer-version-gcc14.1.1
analyzer-version-gcc-analyzer14.1.1
analyzer-version-shellcheck0.10.0
diffbase-analyzer-version-clang18.1.7
diffbase-analyzer-version-cppcheck2.14.2
diffbase-analyzer-version-gcc14.1.1
diffbase-analyzer-version-gcc-analyzer14.1.1
diffbase-analyzer-version-shellcheck0.10.0
diffbase-enabled-pluginsclang, cppcheck, gcc, shellcheck
diffbase-exit-code0
diffbase-hostip-172-16-1-132.us-west-2.compute.internal
diffbase-mock-configfedora-41-x86_64
diffbase-project-namekpipewire-6.1.1-1.fc41
diffbase-store-results-to/tmp/tmpu5iqhxln/kpipewire-6.1.1-1.fc41.tar.xz
diffbase-time-created2024-07-03 14:25:30
diffbase-time-finished2024-07-03 14:27:47
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmpu5iqhxln/kpipewire-6.1.1-1.fc41.tar.xz' '--gcc-analyze' '/tmp/tmpu5iqhxln/kpipewire-6.1.1-1.fc41.src.rpm'
diffbase-tool-versioncsmock-3.5.3-1.el9
enabled-pluginsclang, cppcheck, gcc, shellcheck
exit-code0
hostip-172-16-1-132.us-west-2.compute.internal
mock-configfedora-41-x86_64
project-namekpipewire-6.0.3-1.fc40
store-results-to/tmp/tmptkud3c2e/kpipewire-6.0.3-1.fc40.tar.xz
time-created2024-07-03 14:22:26
time-finished2024-07-03 14:25:09
titleFixed defects
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmptkud3c2e/kpipewire-6.0.3-1.fc40.tar.xz' '--gcc-analyze' '/tmp/tmptkud3c2e/kpipewire-6.0.3-1.fc40.src.rpm'
tool-versioncsmock-3.5.3-1.el9