sratom-0.6.20-1.fc44

List of Findings

Error: COMPILER_WARNING: [#def1] [important]
sratom-0.6.20/include/sratom/sratom.h:12:10: error[fatal error]: serd/serd.h: No such file or directory
#   10|   #include <lv2/atom/forge.h>
#   11|   #include <lv2/urid/urid.h>
#   12|-> #include <serd/serd.h>
#   13|   #include <sord/sord.h>
#   14|   

Error: CPPCHECK_WARNING (CWE-476): [#def2]
sratom-0.6.20/src/sratom.c:344: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: str
#  342|     for (size_t i = 0U; i < size; ++i) {
#  343|       const uint8_t byte = ((const uint8_t*)body)[i];
#  344|->     str[2U * i]        = hex_chars[byte >> 4U];
#  345|       str[(2U * i) + 1U] = hex_chars[byte & 0x0FU];
#  346|     }

Error: CPPCHECK_WARNING (CWE-476): [#def3]
sratom-0.6.20/src/sratom.c:345: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: str
#  343|       const uint8_t byte = ((const uint8_t*)body)[i];
#  344|       str[2U * i]        = hex_chars[byte >> 4U];
#  345|->     str[(2U * i) + 1U] = hex_chars[byte & 0x0FU];
#  346|     }
#  347|   

Error: CPPCHECK_WARNING (CWE-476): [#def4]
sratom-0.6.20/src/sratom.c:892: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: lang_uri
#  890|       char*                    lang_uri     = (char*)calloc(lang_uri_len + 1, 1);
#  891|   
#  892|->     memcpy(lang_uri, prefix, prefix_len + 1);
#  893|       memcpy(lang_uri + prefix_len, language, language_len + 1);
#  894|   

Error: CPPCHECK_WARNING (CWE-682): [#def5]
sratom-0.6.20/src/sratom.c:893: error[nullPointerArithmeticOutOfMemory]: If memory allocation fails: pointer addition with NULL pointer.
#  891|   
#  892|       memcpy(lang_uri, prefix, prefix_len + 1);
#  893|->     memcpy(lang_uri + prefix_len, language, language_len + 1);
#  894|   
#  895|       lv2_atom_forge_literal(

Error: COMPILER_WARNING: [#def6] [important]
sratom-0.6.20/test/test_sratom.c:9:10: error[fatal error]: serd/serd.h: No such file or directory
#    7|   #include <lv2/midi/midi.h>
#    8|   #include <lv2/urid/urid.h>
#    9|-> #include <serd/serd.h>
#   10|   #include <sratom/sratom.h>
#   11|   

Scan Properties

analyzer-version-clippy1.92.0
analyzer-version-cppcheck2.19.1
analyzer-version-gcc16.0.0
analyzer-version-gcc-analyzer16.0.0
analyzer-version-shellcheck0.11.0
analyzer-version-unicontrol0.0.2
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-127.us-west-2.compute.internal
known-false-positives/usr/share/csmock/known-false-positives.js
known-false-positives-rpmknown-false-positives-0.0.0.20250521.132812.g8eff701.main-1.el9.noarch
mock-configfedora-rawhide-x86_64
project-namesratom-0.6.20-1.fc44
store-results-to/tmp/tmpg5a5i9i1/sratom-0.6.20-1.fc44.tar.xz
time-created2026-01-08 21:46:39
time-finished2026-01-08 21:48:00
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,cppcheck,clippy,shellcheck,unicontrol' '-o' '/tmp/tmpg5a5i9i1/sratom-0.6.20-1.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpg5a5i9i1/sratom-0.6.20-1.fc44.src.rpm'
tool-versioncsmock-3.8.3.20251215.161544.g62de9a5-1.el9