libfprint-1.94.7-2.fc41

List of Findings

Error: GCC_ANALYZER_WARNING (CWE-688): [#def1]
libfprint-1.94.7-build/libfprint-v1.94.7/libfprint/drivers/egismoc/egismoc.c: scope_hint: In function ‘egismoc_exec_cmd’
libfprint-1.94.7-build/libfprint-v1.94.7/libfprint/drivers/egismoc/egismoc.c:359:3: warning[-Wanalyzer-null-argument]: use of NULL ‘cmd’ where non-null expected
/usr/lib64/glib-2.0/include/glibconfig.h:9: included_from: Included from here.
/usr/include/glib-2.0/glib/gtypes.h:34: included_from: Included from here.
/usr/include/glib-2.0/glib/galloca.h:34: included_from: Included from here.
/usr/include/glib-2.0/glib.h:32: included_from: Included from here.
libfprint-1.94.7-build/libfprint-v1.94.7/libfprint/drivers/egismoc/egismoc.c:31: included_from: Included from here.
/usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:276:49: note: in expansion of macro ‘G_LIKELY’
libfprint-1.94.7-build/libfprint-v1.94.7/libfprint/drivers/egismoc/egismoc.c:331:3: note: in expansion of macro ‘g_assert’
libfprint-1.94.7-build/libfprint-v1.94.7/libfprint/drivers_api.h:33: included_from: Included from here.
libfprint-1.94.7-build/libfprint-v1.94.7/libfprint/drivers/egismoc/egismoc.c:34: included_from: Included from here.
libfprint-1.94.7-build/libfprint-v1.94.7/libfprint/drivers/egismoc/egismoc.c:332:19: note: in expansion of macro ‘fpi_ssm_new’
<built-in>: note: argument 2 of ‘__builtin_memcpy’ must be non-null
#  357|   
#  358|     /* Command Payload */
#  359|->   memcpy (buffer_out + egismoc_write_prefix_len + EGISMOC_CHECK_BYTES_LENGTH,
#  360|             cmd, cmd_length);
#  361|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def2]
libfprint-1.94.7-build/libfprint-v1.94.7/libfprint/nbis/mindtct/remove.c: scope_hint: In function ‘mark_minutiae_in_range’
libfprint-1.94.7-build/libfprint-v1.94.7/libfprint/nbis/mindtct/remove.c:1342:22: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘to_remove’
# 1340|       int i, dist;
# 1341|       for (i = 0; i < minutiae->num; i++) {
# 1342|->         if (to_remove[i])
# 1343|               continue;
# 1344|           dist = (int)sqrt((x - minutiae->list[i]->x) * (x - minutiae->list[i]->x) +

Error: GCC_ANALYZER_WARNING (CWE-476): [#def3]
libfprint-1.94.7-build/libfprint-v1.94.7/libfprint/nbis/mindtct/remove.c: scope_hint: In function ‘remove_perimeter_pts’
libfprint-1.94.7-build/libfprint-v1.94.7/libfprint/nbis/mindtct/remove.c:1402:26: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘left_down’
# 1400|           }
# 1401|           if (left_min == (iw - 1))
# 1402|->             left_down[i] = -1;
# 1403|           else
# 1404|               left_down[i] = left_min;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def4]
libfprint-1.94.7-build/libfprint-v1.94.7/libfprint/nbis/mindtct/remove.c:1404:26: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘left_down’
# 1402|               left_down[i] = -1;
# 1403|           else
# 1404|->             left_down[i] = left_min;
# 1405|           for (j = iw - 1; j >= right_max; j--) {
# 1406|               if ((bdata[i * iw + j] != 0)) {

Error: GCC_ANALYZER_WARNING (CWE-476): [#def5]
libfprint-1.94.7-build/libfprint-v1.94.7/libfprint/nbis/mindtct/remove.c:1412:27: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘right_down’
# 1410|           }
# 1411|           if (right_max == 0)
# 1412|->             right_down[i] = -1;
# 1413|           else
# 1414|               right_down[i] = right_max;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def6]
libfprint-1.94.7-build/libfprint-v1.94.7/libfprint/nbis/mindtct/remove.c:1414:27: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘right_down’
# 1412|               right_down[i] = -1;
# 1413|           else
# 1414|->             right_down[i] = right_max;
# 1415|       }
# 1416|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def7]
libfprint-1.94.7-build/libfprint-v1.94.7/libfprint/nbis/mindtct/remove.c:1448:21: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘left’
# 1446|       for (i = 0; i < ih; i++) {
# 1447|           if (left_down[i] != left_min)
# 1448|->             left[i] = left_down[i];
# 1449|           else
# 1450|               left[i] = left_up[i];

Error: GCC_ANALYZER_WARNING (CWE-476): [#def8]
libfprint-1.94.7-build/libfprint-v1.94.7/libfprint/nbis/mindtct/remove.c:1450:21: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘left’
# 1448|               left[i] = left_down[i];
# 1449|           else
# 1450|->             left[i] = left_up[i];
# 1451|   
# 1452|           if (right_down[i] != right_max)

Error: GCC_ANALYZER_WARNING (CWE-476): [#def9]
libfprint-1.94.7-build/libfprint-v1.94.7/libfprint/nbis/mindtct/remove.c:1450:30: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘left_up’
# 1448|               left[i] = left_down[i];
# 1449|           else
# 1450|->             left[i] = left_up[i];
# 1451|   
# 1452|           if (right_down[i] != right_max)

Error: GCC_ANALYZER_WARNING (CWE-476): [#def10]
libfprint-1.94.7-build/libfprint-v1.94.7/libfprint/nbis/mindtct/remove.c:1453:22: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘right’
# 1451|   
# 1452|           if (right_down[i] != right_max)
# 1453|->             right[i] = right_down[i];
# 1454|           else
# 1455|               right[i] = right_up[i];

Error: GCC_ANALYZER_WARNING (CWE-476): [#def11]
libfprint-1.94.7-build/libfprint-v1.94.7/libfprint/nbis/mindtct/remove.c:1455:22: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘right’
# 1453|               right[i] = right_down[i];
# 1454|           else
# 1455|->             right[i] = right_up[i];
# 1456|       }
# 1457|       free(left_up);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def12]
libfprint-1.94.7-build/libfprint-v1.94.7/libfprint/nbis/mindtct/remove.c:1455:32: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘right_up’
# 1453|               right[i] = right_down[i];
# 1454|           else
# 1455|->             right[i] = right_up[i];
# 1456|       }
# 1457|       free(left_up);

Error: CPPCHECK_WARNING (CWE-476): [#def13]
libfprint-1.94.7-build/libfprint-v1.94.7/tests/test-fpi-assembling.c:107: warning[nullPointer]: Possible null pointer dereference: frames
#  105|   
#  106|     fpi_do_movement_estimation (&ctx, frames);
#  107|->   for (GSList *l = frames->next; l != NULL; l = l->next)
#  108|       {
#  109|         cairo_frame * frame = l->data;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def14]
libfprint-1.94.7-build/libfprint-v1.94.7/tests/test-fpi-device.c: scope_hint: In function ‘auto_reset_device_class’
libfprint-1.94.7-build/libfprint-v1.94.7/tests/test-fpi-device.c:94:26: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘dev_class’
/usr/lib64/glib-2.0/include/glibconfig.h:9: included_from: Included from here.
/usr/include/glib-2.0/glib/gtypes.h:34: included_from: Included from here.
/usr/include/glib-2.0/glib/galloca.h:34: included_from: Included from here.
/usr/include/glib-2.0/glib.h:32: included_from: Included from here.
/usr/include/glib-2.0/gobject/gbinding.h:30: included_from: Included from here.
/usr/include/glib-2.0/glib-object.h:24: included_from: Included from here.
/usr/include/glib-2.0/gio/gioenums.h:30: included_from: Included from here.
/usr/include/glib-2.0/gio/giotypes.h:30: included_from: Included from here.
/usr/include/glib-2.0/gio/gio.h:28: included_from: Included from here.
libfprint-1.94.7-build/libfprint-v1.94.7/libfprint/fp-image.h:23: included_from: Included from here.
libfprint-1.94.7-build/libfprint-v1.94.7/libfprint/fp-device.h:23: included_from: Included from here.
libfprint-1.94.7-build/libfprint-v1.94.7/tests/test-fpi-device.c:20: included_from: Included from here.
/usr/include/glib-2.0/glib/gmacros.h:1249:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1250:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gtestutils.h:255:49: note: in expansion of macro ‘G_LIKELY’
libfprint-1.94.7-build/libfprint-v1.94.7/tests/test-fpi-device.c:91:7: note: in expansion of macro ‘g_assert_nonnull’
/usr/include/glib-2.0/glib.h:89: included_from: Included from here.
libfprint-1.94.7-build/libfprint-v1.94.7/tests/test-fpi-device.c:91:7: note: in expansion of macro ‘g_assert_nonnull’
#   92|       }
#   93|   
#   94|->   default_fake_dev_class = *dev_class;
#   95|   
#   96|     return dev_class;

Scan Properties

analyzer-version-clippy1.82.0
analyzer-version-cppcheck2.16.0
analyzer-version-gcc14.2.1
analyzer-version-gcc-analyzer15.0.0
analyzer-version-shellcheck0.10.0
analyzer-version-unicontrol0.0.2
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-237.us-west-2.compute.internal
mock-configfedora-rawhide-gcc-latest-x86_64
project-namelibfprint-1.94.7-2.fc41
store-results-to/tmp/tmppssb5n39/libfprint-1.94.7-2.fc41.tar.xz
time-created2024-11-13 01:30:12
time-finished2024-11-13 01:32:31
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'clippy,cppcheck,gcc,unicontrol,shellcheck' '-o' '/tmp/tmppssb5n39/libfprint-1.94.7-2.fc41.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmppssb5n39/libfprint-1.94.7-2.fc41.src.rpm'
tool-versioncsmock-3.7.1.20241107.094801.gb3f0f26.pr_192-1.el9