Task #1065 - added.err
back to task #1065download
Error: GCC_ANALYZER_WARNING (CWE-688):
plymouth-24.004.60-build/plymouth-24.004.60/src/libply-splash-core/ply-device-manager.c: scope_hint: In function ‘get_terminal’
plymouth-24.004.60-build/plymouth-24.004.60/src/libply-splash-core/ply-device-manager.c:760:13: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘device_name’ where non-null expected
plymouth-24.004.60-build/plymouth-24.004.60/src/libply-splash-core/ply-device-manager.c:39: included_from: Included from here.
plymouth-24.004.60-build/plymouth-24.004.60/src/libply/ply-logger.h:149:9: note: in expansion of macro ‘ply_logger_trace’
plymouth-24.004.60-build/plymouth-24.004.60/src/libply-splash-core/ply-device-manager.c:973:9: note: in expansion of macro ‘ply_trace’
plymouth-24.004.60-build/plymouth-24.004.60/src/libply/ply-buffer.h:25: included_from: Included from here.
plymouth-24.004.60-build/plymouth-24.004.60/src/libply-splash-core/ply-keyboard.h:29: included_from: Included from here.
plymouth-24.004.60-build/plymouth-24.004.60/src/libply-splash-core/ply-device-manager.h:25: included_from: Included from here.
plymouth-24.004.60-build/plymouth-24.004.60/src/libply-splash-core/ply-device-manager.c:20: included_from: Included from here.
/usr/include/string.h:159:12: note: argument 1 of ‘strncmp’ must be non-null
# 758| ply_terminal_t *terminal;
# 759|
# 760|-> if (strncmp (device_name, "/dev/", strlen ("/dev/")) == 0)
# 761| full_name = strdup (device_name);
# 762| else
Error: GCC_ANALYZER_WARNING (CWE-688):
plymouth-24.004.60-build/plymouth-24.004.60/src/libply-splash-core/ply-device-manager.c:765:13: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘full_name’ where non-null expected
plymouth-24.004.60-build/plymouth-24.004.60/src/libply/ply-logger.h:149:9: note: in expansion of macro ‘ply_logger_trace’
plymouth-24.004.60-build/plymouth-24.004.60/src/libply-splash-core/ply-device-manager.c:973:9: note: in expansion of macro ‘ply_trace’
/usr/include/string.h:156:12: note: argument 1 of ‘strcmp’ must be non-null
# 763| asprintf (&full_name, "/dev/%s", device_name);
# 764|
# 765|-> if (strcmp (full_name, "/dev/tty0") == 0 ||
# 766| strcmp (full_name, "/dev/tty") == 0 ||
# 767| strcmp (full_name, ply_terminal_get_name (manager->local_console_terminal)) == 0) {
Error: GCC_ANALYZER_WARNING (CWE-476):
plymouth-24.004.60-build/plymouth-24.004.60/src/libply-splash-core/ply-pixel-buffer.c: scope_hint: In function ‘ply_pixel_buffer_tile’
plymouth-24.004.60-build/plymouth-24.004.60/src/libply-splash-core/ply-pixel-buffer.c:1067:46: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘ply_pixel_buffer_get_argb32_data(ply_pixel_buffer_new((long unsigned int)width, (long unsigned int)height)) + (long unsigned int)(y * width + x) * 4’
# 1065| for (x = 0; x < width; x++) {
# 1066| old_x = x % old_width;
# 1067|-> bytes[x + y * width] = old_bytes[old_x + old_y * old_width];
# 1068| }
# 1069| }