Error: COMPILER_WARNING (CWE-843): [#def1] libfm-qt-2.0.2-build/libfm-qt-2.0.2/src/appmenuview.cpp: scope_hint: In member function ‘void Fm::AppMenuView::addMenuItems(QStandardItem*, MenuCacheDir*)’ libfm-qt-2.0.2-build/libfm-qt-2.0.2/src/appmenuview.cpp:98:29: warning[-Wcast-function-type]: cast between incompatible function types from ‘gboolean (*)(MenuCacheItem*)’ {aka ‘int (*)(MenuCacheItem*)’} to ‘GDestroyNotify’ {aka ‘void (*)(void*)’} # 98 | g_slist_free_full(list, (GDestroyNotify)menu_cache_item_unref); # | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # 96| } # 97| } # 98|-> g_slist_free_full(list, (GDestroyNotify)menu_cache_item_unref); # 99| } # 100| Error: GCC_ANALYZER_WARNING (CWE-688): [#def2] libfm-qt-2.0.2-build/libfm-qt-2.0.2/src/core/vfs/vfs-search.c: scope_hint: In function ‘parse_date_str’ libfm-qt-2.0.2-build/libfm-qt-2.0.2/src/core/vfs/vfs-search.c:410:15: warning[-Wanalyzer-null-argument]: use of NULL ‘str’ where non-null expected <built-in>: note: argument 1 of ‘__builtin_strlen’ must be non-null # 408| static time_t parse_date_str(const char* str) # 409| { # 410|-> int len = strlen(str); # 411| if(G_LIKELY(len >= 8)) # 412| { Error: GCC_ANALYZER_WARNING (CWE-476): [#def3] libfm-qt-2.0.2-build/libfm-qt-2.0.2/src/core/vfs/vfs-search.c: scope_hint: In function ‘parse_search_uri’ libfm-qt-2.0.2-build/libfm-qt-2.0.2/src/core/vfs/vfs-search.c:524:47: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘value’ # 522| # 523| if(strcmp(name, "show_hidden") == 0) # 524|-> priv->show_hidden = (value[0] == '1') ? TRUE : FALSE; # 525| else if(strcmp(name, "recursive") == 0) # 526| priv->recursive = (value[0] == '1') ? TRUE : FALSE; Error: GCC_ANALYZER_WARNING (CWE-476): [#def4] libfm-qt-2.0.2-build/libfm-qt-2.0.2/src/core/vfs/vfs-search.c:526:45: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘value’ # 524| priv->show_hidden = (value[0] == '1') ? TRUE : FALSE; # 525| else if(strcmp(name, "recursive") == 0) # 526|-> priv->recursive = (value[0] == '1') ? TRUE : FALSE; # 527| else if(strcmp(name, "name") == 0) # 528| priv->name_patterns = g_strsplit(value, ",", 0); Error: GCC_ANALYZER_WARNING (CWE-476): [#def5] libfm-qt-2.0.2-build/libfm-qt-2.0.2/src/core/vfs/vfs-search.c:536:57: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘value’ # 534| } # 535| else if(strcmp(name, "name_ci") == 0) # 536|-> priv->name_case_insensitive = (value[0] == '1') ? TRUE : FALSE; # 537| else if(strcmp(name, "content") == 0) # 538| { Error: GCC_ANALYZER_WARNING (CWE-476): [#def6] libfm-qt-2.0.2-build/libfm-qt-2.0.2/src/core/vfs/vfs-search.c:550:60: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘value’ # 548| } # 549| else if(strcmp(name, "content_ci") == 0) # 550|-> priv->content_case_insensitive = (value[0] == '1') ? TRUE : FALSE; # 551| else if(strcmp(name, "mime_types") == 0) # 552| { Error: UNICONTROL_WARNING (CWE-94): [#def7] libfm-qt-2.0.2-build/libfm-qt-2.0.2/src/translations/libfm-qt_ar.ts:598: warning: bidirectional control characters: ['\u2068', '\u2069'] # 596| <source>%1 already exists. # 597| Do you want to replace it?</source> # 598|-> <translation>%1 موجود بالفعل. # 599| أتريد استبداله؟</translation> # 600| </message> Error: UNICONTROL_WARNING (CWE-94): [#def8] libfm-qt-2.0.2-build/libfm-qt-2.0.2/src/translations/libfm-qt_ar.ts:609: warning: bidirectional control characters: ['\u2068', '\u2069'] # 607| <location filename="../filedialog.cpp" line="975"/> # 608| <source>"%1" is not a directory</source> # 609|-> <translation>”%1“ ليس دليلا</translation> # 610| </message> # 611| <message> Error: UNICONTROL_WARNING (CWE-94): [#def9] libfm-qt-2.0.2-build/libfm-qt-2.0.2/src/translations/libfm-qt_ar.ts:614: warning: bidirectional control characters: ['\u2068', '\u2069'] # 612| <location filename="../filedialog.cpp" line="981"/> # 613| <source>"%1" is not a file</source> # 614|-> <translation>”%1“ ليس ملفا</translation> # 615| </message> # 616| <message>
analyzer-version-clippy | 1.82.0 |
analyzer-version-cppcheck | 2.16.0 |
analyzer-version-gcc | 14.2.1 |
analyzer-version-gcc-analyzer | 15.0.0 |
analyzer-version-shellcheck | 0.10.0 |
analyzer-version-unicontrol | 0.0.2 |
enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
exit-code | 0 |
host | ip-172-16-1-188.us-west-2.compute.internal |
mock-config | fedora-rawhide-gcc-latest-x86_64 |
project-name | libfm-qt-2.0.2-2.fc42 |
store-results-to | /tmp/tmpp5lcaag0/libfm-qt-2.0.2-2.fc42.tar.xz |
time-created | 2024-11-13 01:28:21 |
time-finished | 2024-11-13 01:31:09 |
tool | csmock |
tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'clippy,cppcheck,gcc,unicontrol,shellcheck' '-o' '/tmp/tmpp5lcaag0/libfm-qt-2.0.2-2.fc42.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmpp5lcaag0/libfm-qt-2.0.2-2.fc42.src.rpm' |
tool-version | csmock-3.7.1.20241107.094801.gb3f0f26.pr_192-1.el9 |