qt5-qtimageformats-5.15.14-1.fc41
List of Defects
Error: CLANG_WARNING: [#def1]
qt5-qtimageformats-5.15.14-build/qtimageformats-everywhere-src-5.15.14/config.tests/webp/main.cpp:14:20: warning[deadcode.DeadStores]: Value stored to 'output_buffer' during its initialization is never read
# 12| #endif
# 13| WebPDecoderConfig config;
# 14|-> WebPDecBuffer *output_buffer = &config.output;
# 15| WebPBitstreamFeatures *bitstream = &config.input;
# 16| WebPPicture picture;
Error: CLANG_WARNING: [#def2]
qt5-qtimageformats-5.15.14-build/qtimageformats-everywhere-src-5.15.14/config.tests/webp/main.cpp:15:28: warning[deadcode.DeadStores]: Value stored to 'bitstream' during its initialization is never read
# 13| WebPDecoderConfig config;
# 14| WebPDecBuffer *output_buffer = &config.output;
# 15|-> WebPBitstreamFeatures *bitstream = &config.input;
# 16| WebPPicture picture;
# 17| picture.use_argb = 0;
Error: CLANG_WARNING: [#def3]
qt5-qtimageformats-5.15.14-build/qtimageformats-everywhere-src-5.15.14/config.tests/webp/main.cpp:21:18: warning[deadcode.DeadStores]: Value stored to 'demuxer' during its initialization is never read
# 19| config2.lossless = 0;
# 20| WebPData data = {};
# 21|-> WebPDemuxer *demuxer = WebPDemux(&data);
# 22| WebPIterator iter;
# 23| iter.frame_num = 0;
Error: CLANG_WARNING: [#def4]
qt5-qtimageformats-5.15.14-build/qtimageformats-everywhere-src-5.15.14/src/plugins/imageformats/jp2/qjp2handler.cpp:656:13: warning[core.CallAndMessage]: 7th function call argument is an uninitialized value
# 654| for (int componentY = 0; componentY < computedComponentHeight; ++componentY) {
# 655| for (int c = 0; c < jasNumComponents; ++c) {
# 656|-> jas_image_readcmpt(jasper_image, colorComponentMapping[c], 0,
# 657| componentY, computedComponentWidth, 1,
# 658| jasperMatrix[c]);
Error: CLANG_WARNING: [#def5]
qt5-qtimageformats-5.15.14-build/qtimageformats-everywhere-src-5.15.14/src/plugins/imageformats/jp2/qjp2handler.cpp:674:48: warning[core.NullDereference]: Array access results in an undefined pointer dereference
# 672| if (jasperColorspaceFamily == JAS_CLRSPC_FAM_RGB) {
# 673| if (hasAlpha) {
# 674|-> *scanLineQRgb++ = (jasperRow[3][componentX] << 24) |
# 675| (jasperRow[0][componentX] << 16) |
# 676| (jasperRow[1][componentX] << 8) |
Error: CLANG_WARNING: [#def6]
qt5-qtimageformats-5.15.14-build/qtimageformats-everywhere-src-5.15.14/src/plugins/imageformats/jp2/qjp2handler.cpp:680:48: warning[core.NullDereference]: Array access results in an undefined pointer dereference
# 678| } else {
# 679| *scanLineQRgb++ = (jasperRow[0][componentX] << 16) |
# 680|-> (jasperRow[1][componentX] << 8) |
# 681| jasperRow[2][componentX];
# 682| }
Error: CLANG_WARNING: [#def7]
qt5-qtimageformats-5.15.14-build/qtimageformats-everywhere-src-5.15.14/src/plugins/imageformats/jp2/qjp2handler.cpp:685:48: warning[core.NullDereference]: Array access results in an undefined pointer dereference
# 683| } else if (jasperColorspaceFamily == JAS_CLRSPC_FAM_GRAY) {
# 684| if (hasAlpha) {
# 685|-> *scanLineQRgb++ = (jasperRow[1][componentX] << 24) |
# 686| (jasperRow[0][componentX] << 16) |
# 687| (jasperRow[0][componentX] << 8) |
Error: CLANG_WARNING: [#def8]
qt5-qtimageformats-5.15.14-build/qtimageformats-everywhere-src-5.15.14/src/plugins/imageformats/jp2/qjp2handler.cpp:698:1: warning[unix.Malloc]: Potential leak of memory pointed to by 'jasperMatrix'
# 696| }
# 697| }
# 698|-> }
# 699|
# 700| /*!
Error: CLANG_WARNING: [#def9]
qt5-qtimageformats-5.15.14-build/qtimageformats-everywhere-src-5.15.14/src/plugins/imageformats/jp2/qjp2handler.cpp:698:1: warning[unix.Malloc]: Potential leak of memory pointed to by 'jasperRow'
# 696| }
# 697| }
# 698|-> }
# 699|
# 700| /*!
Error: CLANG_WARNING: [#def10]
qt5-qtimageformats-5.15.14-build/qtimageformats-everywhere-src-5.15.14/src/plugins/imageformats/jp2/qjp2handler.cpp:718:54: warning[unix.Malloc]: Use of memory allocated with size zero
# 716| for (int c = 0; c < jasNumComponents; ++c) {
# 717| jas_image_readcmpt(jasper_image, colorComponentMapping[c], 0,
# 718|-> scanline, qtWidth, 1, jasperMatrix[c]);
# 719| jasperRow[c] = jas_matrix_getref(jasperMatrix[c], 0, 0);
# 720| }
Error: CLANG_WARNING: [#def11]
qt5-qtimageformats-5.15.14-build/qtimageformats-everywhere-src-5.15.14/src/plugins/imageformats/jp2/qjp2handler.cpp:738:24: warning[unix.Malloc]: Use of memory allocated with size zero
# 736| for (int c = 0; c < qtWidth; ++c) {
# 737| *scanLine++ = (0xFF << 24) |
# 738|-> (jasperRow[0][c] << 16) |
# 739| (jasperRow[1][c] << 8) |
# 740| jasperRow[2][c];
Error: CLANG_WARNING: [#def12]
qt5-qtimageformats-5.15.14-build/qtimageformats-everywhere-src-5.15.14/src/plugins/imageformats/jp2/qjp2handler.cpp:752:24: warning[unix.Malloc]: Use of memory allocated with size zero
# 750| QRgb *scanLine = reinterpret_cast<QRgb *>(qtScanLine);
# 751| for (int c = 0; c < qtWidth; ++c) {
# 752|-> *scanLine++ = (jasperRow[3][c] << 24) |
# 753| (jasperRow[0][c] << 16) |
# 754| (jasperRow[1][c] << 8) |
Error: CLANG_WARNING: [#def13]
qt5-qtimageformats-5.15.14-build/qtimageformats-everywhere-src-5.15.14/src/plugins/imageformats/jp2/qjp2handler.cpp:929:13: warning[core.CallAndMessage]: 7th function call argument is an uninitialized value
# 927| // Write a scanline of data to jasper_image
# 928| for (int c = 0; c < jasNumComponents; ++c)
# 929|-> jas_image_writecmpt(jasper_image, c, 0, scanline, qtWidth, 1,
# 930| jasperMatrix[c]);
# 931| }
Error: CLANG_WARNING: [#def14]
qt5-qtimageformats-5.15.14-build/qtimageformats-everywhere-src-5.15.14/src/plugins/imageformats/jp2/qjp2handler.cpp:1152:28: warning[unix.Malloc]: Use of memory allocated with size zero
# 1150| {
# 1151| for (int c = 0; c < jasNumComponents; ++c)
# 1152|-> jas_matrix_destroy(matrix[c]);
# 1153| free(matrix);
# 1154| return false;
Error: CLANG_WARNING: [#def15]
qt5-qtimageformats-5.15.14-build/qtimageformats-everywhere-src-5.15.14/src/plugins/imageformats/mng/qmnghandler.cpp:271:13: warning[deadcode.DeadStores]: Value stored to 'ret' is never read
# 269| // of the animation on the first loop only.
# 270| if (nextDelay == 1 && (!savedHaveReadAll && haveReadAll)) {
# 271|-> ret = mng_display_resume(hMNG);
# 272| }
# 273|
Error: CLANG_WARNING: [#def16]
qt5-qtimageformats-5.15.14-build/qtimageformats-everywhere-src-5.15.14/src/plugins/imageformats/tga/qtgafile.cpp:260:5: warning[core.NullDereference]: Dereference of null pointer (loaded from variable 'reader')
# 258| else if (bitsPerPixel == 32)
# 259| reader = new Tga32Reader();
# 260|-> TgaReader &read = *reader;
# 261|
# 262| // For now only deal with yCorner, since no one uses xCorner == 1
Scan Properties
analyzer-version-clang | 18.1.7 |
analyzer-version-cppcheck | 2.14.2 |
analyzer-version-gcc | 14.1.1 |
analyzer-version-gcc-analyzer | 14.1.1 |
analyzer-version-shellcheck | 0.10.0 |
enabled-plugins | clang, cppcheck, gcc, shellcheck |
exit-code | 0 |
host | ip-172-16-1-8.us-west-2.compute.internal |
mock-config | fedora-41-x86_64 |
project-name | qt5-qtimageformats-5.15.14-1.fc41 |
store-results-to | /tmp/tmpj6cakgqi/qt5-qtimageformats-5.15.14-1.fc41.tar.xz |
time-created | 2024-07-03 17:38:10 |
time-finished | 2024-07-03 17:39:17 |
tool | csmock |
tool-args | '/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmpj6cakgqi/qt5-qtimageformats-5.15.14-1.fc41.tar.xz' '--gcc-analyze' '/tmp/tmpj6cakgqi/qt5-qtimageformats-5.15.14-1.fc41.src.rpm' |
tool-version | csmock-3.5.3-1.el9 |