libfm-qt-2.1.0-3.fc43

List of Findings

Error: GCC_ANALYZER_WARNING (CWE-688): [#def1]
libfm-qt-2.1.0/src/core/vfs/vfs-search.c:410:15: warning[-Wanalyzer-null-argument]: use of NULL ‘str’ where non-null expected
libfm-qt-2.1.0/src/core/vfs/vfs-search.c:456:13: enter_function: entry to ‘parse_search_uri’
libfm-qt-2.1.0/src/core/vfs/vfs-search.c:459:7: branch_true: following ‘true’ branch...
libfm-qt-2.1.0/src/core/vfs/vfs-search.c:461:21: branch_true: ...to here
libfm-qt-2.1.0/src/core/vfs/vfs-search.c:472:16: branch_false: following ‘false’ branch (when ‘sep’ is NULL)...
libfm-qt-2.1.0/src/core/vfs/vfs-search.c:474:21: branch_false: ...to here
libfm-qt-2.1.0/src/core/vfs/vfs-search.c:474:21: branch_true: following ‘true’ branch (when ‘params’ is non-NULL)...
libfm-qt-2.1.0/src/core/vfs/vfs-search.c:476:24: branch_true: ...to here
libfm-qt-2.1.0/src/core/vfs/vfs-search.c:488:16: branch_false: following ‘false’ branch (when ‘sep’ is NULL)...
libfm-qt-2.1.0/src/core/vfs/vfs-search.c:495:11: branch_false: ...to here
libfm-qt-2.1.0/src/core/vfs/vfs-search.c:495:11: branch_true: following ‘true’ branch (when ‘params’ is non-NULL)...
libfm-qt-2.1.0/src/core/vfs/vfs-search.c:497:13: branch_true: ...to here
libfm-qt-2.1.0/src/core/vfs/vfs-search.c:498:19: branch_true: following ‘true’ branch...
libfm-qt-2.1.0/src/core/vfs/vfs-search.c:502:31: branch_true: ...to here
libfm-qt-2.1.0/src/core/vfs/vfs-search.c:505:20: branch_true: following ‘true’ branch (when ‘value’ is non-NULL)...
libfm-qt-2.1.0/src/core/vfs/vfs-search.c:505:31: branch_true: ...to here
libfm-qt-2.1.0/src/core/vfs/vfs-search.c:505:21: branch_false: following ‘false’ branch...
libfm-qt-2.1.0/src/core/vfs/vfs-search.c:515:46: branch_false: ...to here
libfm-qt-2.1.0/src/core/vfs/vfs-search.c:523:19: branch_false: following ‘false’ branch (when the strings are non-equal)...
libfm-qt-2.1.0/src/core/vfs/vfs-search.c:525:25: branch_false: ...to here
libfm-qt-2.1.0/src/core/vfs/vfs-search.c:525:24: branch_false: following ‘false’ branch (when the strings are non-equal)...
libfm-qt-2.1.0/src/core/vfs/vfs-search.c:527:25: branch_false: ...to here
libfm-qt-2.1.0/src/core/vfs/vfs-search.c:527:24: branch_false: following ‘false’ branch (when the strings are non-equal)...
libfm-qt-2.1.0/src/core/vfs/vfs-search.c:529:25: branch_false: ...to here
libfm-qt-2.1.0/src/core/vfs/vfs-search.c:529:24: branch_false: following ‘false’ branch (when the strings are non-equal)...
libfm-qt-2.1.0/src/core/vfs/vfs-search.c:535:25: branch_false: ...to here
libfm-qt-2.1.0/src/core/vfs/vfs-search.c:535:24: branch_false: following ‘false’ branch (when the strings are non-equal)...
libfm-qt-2.1.0/src/core/vfs/vfs-search.c:537:25: branch_false: ...to here
libfm-qt-2.1.0/src/core/vfs/vfs-search.c:537:24: branch_false: following ‘false’ branch (when the strings are non-equal)...
libfm-qt-2.1.0/src/core/vfs/vfs-search.c:543:25: branch_false: ...to here
libfm-qt-2.1.0/src/core/vfs/vfs-search.c:543:24: branch_false: following ‘false’ branch (when the strings are non-equal)...
libfm-qt-2.1.0/src/core/vfs/vfs-search.c:549:25: branch_false: ...to here
libfm-qt-2.1.0/src/core/vfs/vfs-search.c:549:24: branch_false: following ‘false’ branch (when the strings are non-equal)...
libfm-qt-2.1.0/src/core/vfs/vfs-search.c:551:25: branch_false: ...to here
libfm-qt-2.1.0/src/core/vfs/vfs-search.c:551:24: branch_false: following ‘false’ branch (when the strings are non-equal)...
libfm-qt-2.1.0/src/core/vfs/vfs-search.c:584:25: branch_false: ...to here
libfm-qt-2.1.0/src/core/vfs/vfs-search.c:584:24: branch_false: following ‘false’ branch (when the strings are non-equal)...
libfm-qt-2.1.0/src/core/vfs/vfs-search.c:586:25: branch_false: ...to here
libfm-qt-2.1.0/src/core/vfs/vfs-search.c:586:24: branch_false: following ‘false’ branch (when the strings are non-equal)...
libfm-qt-2.1.0/src/core/vfs/vfs-search.c:588:25: branch_false: ...to here
libfm-qt-2.1.0/src/core/vfs/vfs-search.c:588:24: branch_true: following ‘true’ branch (when the strings are equal)...
libfm-qt-2.1.0/src/core/vfs/vfs-search.c:589:48: branch_true: ...to here
libfm-qt-2.1.0/src/core/vfs/vfs-search.c:589:48: call_function: calling ‘parse_date_str’ from ‘parse_search_uri’
#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): [#def2]
libfm-qt-2.1.0/src/core/vfs/vfs-search.c:524:42: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘value’
libfm-qt-2.1.0/src/core/vfs/vfs-search.c:459:7: branch_true: following ‘true’ branch...
libfm-qt-2.1.0/src/core/vfs/vfs-search.c:461:21: branch_true: ...to here
libfm-qt-2.1.0/src/core/vfs/vfs-search.c:472:16: branch_false: following ‘false’ branch (when ‘sep’ is NULL)...
libfm-qt-2.1.0/src/core/vfs/vfs-search.c:474:21: branch_false: ...to here
libfm-qt-2.1.0/src/core/vfs/vfs-search.c:474:21: branch_true: following ‘true’ branch (when ‘params’ is non-NULL)...
libfm-qt-2.1.0/src/core/vfs/vfs-search.c:476:24: branch_true: ...to here
libfm-qt-2.1.0/src/core/vfs/vfs-search.c:488:16: branch_false: following ‘false’ branch (when ‘sep’ is NULL)...
libfm-qt-2.1.0/src/core/vfs/vfs-search.c:495:11: branch_false: ...to here
libfm-qt-2.1.0/src/core/vfs/vfs-search.c:495:11: branch_true: following ‘true’ branch (when ‘params’ is non-NULL)...
libfm-qt-2.1.0/src/core/vfs/vfs-search.c:497:13: branch_true: ...to here
libfm-qt-2.1.0/src/core/vfs/vfs-search.c:498:19: branch_true: following ‘true’ branch...
libfm-qt-2.1.0/src/core/vfs/vfs-search.c:502:31: branch_true: ...to here
libfm-qt-2.1.0/src/core/vfs/vfs-search.c:505:20: branch_true: following ‘true’ branch (when ‘value’ is non-NULL)...
libfm-qt-2.1.0/src/core/vfs/vfs-search.c:505:31: branch_true: ...to here
libfm-qt-2.1.0/src/core/vfs/vfs-search.c:505:21: branch_false: following ‘false’ branch...
libfm-qt-2.1.0/src/core/vfs/vfs-search.c:515:46: branch_false: ...to here
libfm-qt-2.1.0/src/core/vfs/vfs-search.c:523:19: branch_true: following ‘true’ branch (when the strings are equal)...
libfm-qt-2.1.0/src/core/vfs/vfs-search.c:524:42: branch_true: ...to here
libfm-qt-2.1.0/src/core/vfs/vfs-search.c:524:42: danger: 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): [#def3]
libfm-qt-2.1.0/src/core/vfs/vfs-search.c:526:40: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘value’
libfm-qt-2.1.0/src/core/vfs/vfs-search.c:459:7: branch_true: following ‘true’ branch...
libfm-qt-2.1.0/src/core/vfs/vfs-search.c:461:21: branch_true: ...to here
libfm-qt-2.1.0/src/core/vfs/vfs-search.c:472:16: branch_false: following ‘false’ branch (when ‘sep’ is NULL)...
libfm-qt-2.1.0/src/core/vfs/vfs-search.c:474:21: branch_false: ...to here
libfm-qt-2.1.0/src/core/vfs/vfs-search.c:474:21: branch_true: following ‘true’ branch (when ‘params’ is non-NULL)...
libfm-qt-2.1.0/src/core/vfs/vfs-search.c:476:24: branch_true: ...to here
libfm-qt-2.1.0/src/core/vfs/vfs-search.c:488:16: branch_false: following ‘false’ branch (when ‘sep’ is NULL)...
libfm-qt-2.1.0/src/core/vfs/vfs-search.c:495:11: branch_false: ...to here
libfm-qt-2.1.0/src/core/vfs/vfs-search.c:495:11: branch_true: following ‘true’ branch (when ‘params’ is non-NULL)...
libfm-qt-2.1.0/src/core/vfs/vfs-search.c:497:13: branch_true: ...to here
libfm-qt-2.1.0/src/core/vfs/vfs-search.c:498:19: branch_true: following ‘true’ branch...
libfm-qt-2.1.0/src/core/vfs/vfs-search.c:502:31: branch_true: ...to here
libfm-qt-2.1.0/src/core/vfs/vfs-search.c:505:20: branch_true: following ‘true’ branch (when ‘value’ is non-NULL)...
libfm-qt-2.1.0/src/core/vfs/vfs-search.c:505:31: branch_true: ...to here
libfm-qt-2.1.0/src/core/vfs/vfs-search.c:505:21: branch_false: following ‘false’ branch...
libfm-qt-2.1.0/src/core/vfs/vfs-search.c:515:46: branch_false: ...to here
libfm-qt-2.1.0/src/core/vfs/vfs-search.c:523:19: branch_false: following ‘false’ branch (when the strings are non-equal)...
libfm-qt-2.1.0/src/core/vfs/vfs-search.c:525:25: branch_false: ...to here
libfm-qt-2.1.0/src/core/vfs/vfs-search.c:525:24: branch_true: following ‘true’ branch (when the strings are equal)...
libfm-qt-2.1.0/src/core/vfs/vfs-search.c:526:40: branch_true: ...to here
libfm-qt-2.1.0/src/core/vfs/vfs-search.c:526:40: danger: 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): [#def4]
libfm-qt-2.1.0/src/core/vfs/vfs-search.c:536:52: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘value’
libfm-qt-2.1.0/src/core/vfs/vfs-search.c:459:7: branch_true: following ‘true’ branch...
libfm-qt-2.1.0/src/core/vfs/vfs-search.c:461:21: branch_true: ...to here
libfm-qt-2.1.0/src/core/vfs/vfs-search.c:472:16: branch_false: following ‘false’ branch (when ‘sep’ is NULL)...
libfm-qt-2.1.0/src/core/vfs/vfs-search.c:474:21: branch_false: ...to here
libfm-qt-2.1.0/src/core/vfs/vfs-search.c:474:21: branch_true: following ‘true’ branch (when ‘params’ is non-NULL)...
libfm-qt-2.1.0/src/core/vfs/vfs-search.c:476:24: branch_true: ...to here
libfm-qt-2.1.0/src/core/vfs/vfs-search.c:488:16: branch_false: following ‘false’ branch (when ‘sep’ is NULL)...
libfm-qt-2.1.0/src/core/vfs/vfs-search.c:495:11: branch_false: ...to here
libfm-qt-2.1.0/src/core/vfs/vfs-search.c:495:11: branch_true: following ‘true’ branch (when ‘params’ is non-NULL)...
libfm-qt-2.1.0/src/core/vfs/vfs-search.c:497:13: branch_true: ...to here
libfm-qt-2.1.0/src/core/vfs/vfs-search.c:498:19: branch_true: following ‘true’ branch...
libfm-qt-2.1.0/src/core/vfs/vfs-search.c:502:31: branch_true: ...to here
libfm-qt-2.1.0/src/core/vfs/vfs-search.c:505:20: branch_true: following ‘true’ branch (when ‘value’ is non-NULL)...
libfm-qt-2.1.0/src/core/vfs/vfs-search.c:505:31: branch_true: ...to here
libfm-qt-2.1.0/src/core/vfs/vfs-search.c:505:21: branch_false: following ‘false’ branch...
libfm-qt-2.1.0/src/core/vfs/vfs-search.c:515:46: branch_false: ...to here
libfm-qt-2.1.0/src/core/vfs/vfs-search.c:523:19: branch_false: following ‘false’ branch (when the strings are non-equal)...
libfm-qt-2.1.0/src/core/vfs/vfs-search.c:525:25: branch_false: ...to here
libfm-qt-2.1.0/src/core/vfs/vfs-search.c:525:24: branch_false: following ‘false’ branch (when the strings are non-equal)...
libfm-qt-2.1.0/src/core/vfs/vfs-search.c:527:25: branch_false: ...to here
libfm-qt-2.1.0/src/core/vfs/vfs-search.c:527:24: branch_false: following ‘false’ branch (when the strings are non-equal)...
libfm-qt-2.1.0/src/core/vfs/vfs-search.c:529:25: branch_false: ...to here
libfm-qt-2.1.0/src/core/vfs/vfs-search.c:529:24: branch_false: following ‘false’ branch (when the strings are non-equal)...
libfm-qt-2.1.0/src/core/vfs/vfs-search.c:535:25: branch_false: ...to here
libfm-qt-2.1.0/src/core/vfs/vfs-search.c:535:24: branch_true: following ‘true’ branch (when the strings are equal)...
libfm-qt-2.1.0/src/core/vfs/vfs-search.c:536:52: branch_true: ...to here
libfm-qt-2.1.0/src/core/vfs/vfs-search.c:536:52: danger: 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): [#def5]
libfm-qt-2.1.0/src/core/vfs/vfs-search.c:550:55: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘value’
libfm-qt-2.1.0/src/core/vfs/vfs-search.c:459:7: branch_true: following ‘true’ branch...
libfm-qt-2.1.0/src/core/vfs/vfs-search.c:461:21: branch_true: ...to here
libfm-qt-2.1.0/src/core/vfs/vfs-search.c:472:16: branch_false: following ‘false’ branch (when ‘sep’ is NULL)...
libfm-qt-2.1.0/src/core/vfs/vfs-search.c:474:21: branch_false: ...to here
libfm-qt-2.1.0/src/core/vfs/vfs-search.c:474:21: branch_true: following ‘true’ branch (when ‘params’ is non-NULL)...
libfm-qt-2.1.0/src/core/vfs/vfs-search.c:476:24: branch_true: ...to here
libfm-qt-2.1.0/src/core/vfs/vfs-search.c:488:16: branch_false: following ‘false’ branch (when ‘sep’ is NULL)...
libfm-qt-2.1.0/src/core/vfs/vfs-search.c:495:11: branch_false: ...to here
libfm-qt-2.1.0/src/core/vfs/vfs-search.c:495:11: branch_true: following ‘true’ branch (when ‘params’ is non-NULL)...
libfm-qt-2.1.0/src/core/vfs/vfs-search.c:497:13: branch_true: ...to here
libfm-qt-2.1.0/src/core/vfs/vfs-search.c:498:19: branch_true: following ‘true’ branch...
libfm-qt-2.1.0/src/core/vfs/vfs-search.c:502:31: branch_true: ...to here
libfm-qt-2.1.0/src/core/vfs/vfs-search.c:505:20: branch_true: following ‘true’ branch (when ‘value’ is non-NULL)...
libfm-qt-2.1.0/src/core/vfs/vfs-search.c:505:31: branch_true: ...to here
libfm-qt-2.1.0/src/core/vfs/vfs-search.c:505:21: branch_false: following ‘false’ branch...
libfm-qt-2.1.0/src/core/vfs/vfs-search.c:515:46: branch_false: ...to here
libfm-qt-2.1.0/src/core/vfs/vfs-search.c:523:19: branch_false: following ‘false’ branch (when the strings are non-equal)...
libfm-qt-2.1.0/src/core/vfs/vfs-search.c:525:25: branch_false: ...to here
libfm-qt-2.1.0/src/core/vfs/vfs-search.c:525:24: branch_false: following ‘false’ branch (when the strings are non-equal)...
libfm-qt-2.1.0/src/core/vfs/vfs-search.c:527:25: branch_false: ...to here
libfm-qt-2.1.0/src/core/vfs/vfs-search.c:527:24: branch_false: following ‘false’ branch (when the strings are non-equal)...
libfm-qt-2.1.0/src/core/vfs/vfs-search.c:529:25: branch_false: ...to here
libfm-qt-2.1.0/src/core/vfs/vfs-search.c:529:24: branch_false: following ‘false’ branch (when the strings are non-equal)...
libfm-qt-2.1.0/src/core/vfs/vfs-search.c:535:25: branch_false: ...to here
libfm-qt-2.1.0/src/core/vfs/vfs-search.c:535:24: branch_false: following ‘false’ branch (when the strings are non-equal)...
libfm-qt-2.1.0/src/core/vfs/vfs-search.c:537:25: branch_false: ...to here
libfm-qt-2.1.0/src/core/vfs/vfs-search.c:537:24: branch_false: following ‘false’ branch (when the strings are non-equal)...
libfm-qt-2.1.0/src/core/vfs/vfs-search.c:543:25: branch_false: ...to here
libfm-qt-2.1.0/src/core/vfs/vfs-search.c:543:24: branch_false: following ‘false’ branch (when the strings are non-equal)...
libfm-qt-2.1.0/src/core/vfs/vfs-search.c:549:25: branch_false: ...to here
libfm-qt-2.1.0/src/core/vfs/vfs-search.c:549:24: branch_true: following ‘true’ branch (when the strings are equal)...
libfm-qt-2.1.0/src/core/vfs/vfs-search.c:550:55: branch_true: ...to here
libfm-qt-2.1.0/src/core/vfs/vfs-search.c:550:55: danger: 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: COMPILER_WARNING: [#def6]
libfm-qt-2.1.0/src/mountoperationquestiondialog.cpp:35:53: warning[-Walloc-size-larger-than=]: argument 1 value ‘18446744073709551615’ exceeds maximum object size 9223372036854775807
#   35 |     choiceButtons = new QAbstractButton*[choiceCount];
#      |                                                     ^
/usr/include/c++/15/new: scope_hint: In function ‘onAskQuestion’
/usr/include/c++/15/new:140:26: note: in a call to allocation function ‘operator new []’ declared here
#  140 | _GLIBCXX_NODISCARD void* operator new[](std::size_t)
#      |                          ^
#   33|   
#   34|       choiceCount = g_strv_length(choices);
#   35|->     choiceButtons = new QAbstractButton*[choiceCount];
#   36|       for(int i = 0; i < choiceCount; ++i) {
#   37|           // It's not allowed to add custom buttons without standard roles

Error: UNICONTROL_WARNING (CWE-94): [#def7]
libfm-qt-2.1.0/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.1.0/src/translations/libfm-qt_ar.ts:609: warning: bidirectional control characters: ['\u2068', '\u2069']
#  607|           <location filename="../filedialog.cpp" line="1036"/>
#  608|           <source>&quot;%1&quot; is not a directory</source>
#  609|->         <translation>‏”⁨%1⁩“ ليس دليلا</translation>
#  610|       </message>
#  611|       <message>

Error: UNICONTROL_WARNING (CWE-94): [#def9]
libfm-qt-2.1.0/src/translations/libfm-qt_ar.ts:614: warning: bidirectional control characters: ['\u2068', '\u2069']
#  612|           <location filename="../filedialog.cpp" line="1046"/>
#  613|           <source>&quot;%1&quot; is not a file</source>
#  614|->         <translation>‏”⁨%1⁩“ ليس ملفا</translation>
#  615|       </message>
#  616|       <message>

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-131.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-namelibfm-qt-2.1.0-3.fc43
store-results-to/tmp/tmpr_f646nb/libfm-qt-2.1.0-3.fc43.tar.xz
time-created2025-04-25 13:57:11
time-finished2025-04-25 14:00:07
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'unicontrol,cppcheck,gcc,clippy,shellcheck' '-o' '/tmp/tmpr_f646nb/libfm-qt-2.1.0-3.fc43.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpr_f646nb/libfm-qt-2.1.0-3.fc43.src.rpm'
tool-versioncsmock-3.8.1.20250422.172604.g26bc3d6-1.el9