Error: GCC_ANALYZER_WARNING (CWE-688): [#def1] libxcb-1.17.0-build/libxcb-1.17.0/src/render.c: scope_hint: In function 'xcb_render_create_picture_value_list_serialize' libxcb-1.17.0-build/libxcb-1.17.0/src/render.c:941:13: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL 'xcb_tmp' where non-null expected <built-in>: note: argument 1 of '__builtin_memcpy' must be non-null # 939| for(i=0; i<xcb_parts_idx; i++) { # 940| if (0 != xcb_parts[i].iov_base && 0 != xcb_parts[i].iov_len) # 941|-> memcpy(xcb_tmp, xcb_parts[i].iov_base, xcb_parts[i].iov_len); # 942| if (0 != xcb_parts[i].iov_len) # 943| xcb_tmp += xcb_parts[i].iov_len; Error: GCC_ANALYZER_WARNING (CWE-688): [#def2] libxcb-1.17.0-build/libxcb-1.17.0/src/render.c: scope_hint: In function 'xcb_render_change_picture_value_list_serialize' libxcb-1.17.0-build/libxcb-1.17.0/src/render.c:1406:13: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL 'xcb_tmp' where non-null expected <built-in>: note: argument 1 of '__builtin_memcpy' must be non-null # 1404| for(i=0; i<xcb_parts_idx; i++) { # 1405| if (0 != xcb_parts[i].iov_base && 0 != xcb_parts[i].iov_len) # 1406|-> memcpy(xcb_tmp, xcb_parts[i].iov_base, xcb_parts[i].iov_len); # 1407| if (0 != xcb_parts[i].iov_len) # 1408| xcb_tmp += xcb_parts[i].iov_len; Error: GCC_ANALYZER_WARNING (CWE-688): [#def3] libxcb-1.17.0-build/libxcb-1.17.0/src/screensaver.c: scope_hint: In function 'xcb_screensaver_set_attributes_value_list_serialize' libxcb-1.17.0-build/libxcb-1.17.0/src/screensaver.c:362:13: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL 'xcb_tmp' where non-null expected <built-in>: note: argument 1 of '__builtin_memcpy' must be non-null # 360| for(i=0; i<xcb_parts_idx; i++) { # 361| if (0 != xcb_parts[i].iov_base && 0 != xcb_parts[i].iov_len) # 362|-> memcpy(xcb_tmp, xcb_parts[i].iov_base, xcb_parts[i].iov_len); # 363| if (0 != xcb_parts[i].iov_len) # 364| xcb_tmp += xcb_parts[i].iov_len; Error: GCC_ANALYZER_WARNING (CWE-688): [#def4] libxcb-1.17.0-build/libxcb-1.17.0/src/sync.c: scope_hint: In function 'xcb_sync_create_alarm_value_list_serialize' libxcb-1.17.0-build/libxcb-1.17.0/src/sync.c:868:13: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL 'xcb_tmp' where non-null expected <built-in>: note: argument 1 of '__builtin_memcpy' must be non-null # 866| for(i=0; i<xcb_parts_idx; i++) { # 867| if (0 != xcb_parts[i].iov_base && 0 != xcb_parts[i].iov_len) # 868|-> memcpy(xcb_tmp, xcb_parts[i].iov_base, xcb_parts[i].iov_len); # 869| if (0 != xcb_parts[i].iov_len) # 870| xcb_tmp += xcb_parts[i].iov_len; Error: GCC_ANALYZER_WARNING (CWE-688): [#def5] libxcb-1.17.0-build/libxcb-1.17.0/src/sync.c: scope_hint: In function 'xcb_sync_change_alarm_value_list_serialize' libxcb-1.17.0-build/libxcb-1.17.0/src/sync.c:1212:13: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL 'xcb_tmp' where non-null expected <built-in>: note: argument 1 of '__builtin_memcpy' must be non-null # 1210| for(i=0; i<xcb_parts_idx; i++) { # 1211| if (0 != xcb_parts[i].iov_base && 0 != xcb_parts[i].iov_len) # 1212|-> memcpy(xcb_tmp, xcb_parts[i].iov_base, xcb_parts[i].iov_len); # 1213| if (0 != xcb_parts[i].iov_len) # 1214| xcb_tmp += xcb_parts[i].iov_len; Error: GCC_ANALYZER_WARNING (CWE-401): [#def6] libxcb-1.17.0-build/libxcb-1.17.0/src/xcb_auth.c: scope_hint: In function '_xcb_get_auth_info' libxcb-1.17.0-build/libxcb-1.17.0/src/xcb_auth.c:384:16: warning[-Wanalyzer-malloc-leak]: leak of '*info.name' libxcb-1.17.0-build/libxcb-1.17.0/src/xcb_auth.c:50: included_from: Included from here. # 382| free(sockname); # 383| # 384|-> info->name = 0; # 385| info->namelen = 0; # 386| XauDisposeAuth(authptr); Error: COMPILER_WARNING (CWE-252): [#def7] libxcb-1.17.0-build/libxcb-1.17.0/src/xcb_conn.c: scope_hint: In function 'read_setup' libxcb-1.17.0-build/libxcb-1.17.0/src/xcb_conn.c:199:13: warning[-Wunused-result]: ignoring return value of 'write' declared with attribute 'warn_unused_result' # 199 | write(STDERR_FILENO, xcb_setup_failed_reason(setup), xcb_setup_failed_reason_length(setup)); # | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # 197| { # 198| xcb_setup_failed_t *setup = (xcb_setup_failed_t *) c->setup; # 199|-> write(STDERR_FILENO, xcb_setup_failed_reason(setup), xcb_setup_failed_reason_length(setup)); # 200| write(STDERR_FILENO, &newline, 1); # 201| return 0; Error: COMPILER_WARNING (CWE-252): [#def8] libxcb-1.17.0-build/libxcb-1.17.0/src/xcb_conn.c:200:13: warning[-Wunused-result]: ignoring return value of 'write' declared with attribute 'warn_unused_result' # 200 | write(STDERR_FILENO, &newline, 1); # | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # 198| xcb_setup_failed_t *setup = (xcb_setup_failed_t *) c->setup; # 199| write(STDERR_FILENO, xcb_setup_failed_reason(setup), xcb_setup_failed_reason_length(setup)); # 200|-> write(STDERR_FILENO, &newline, 1); # 201| return 0; # 202| } Error: COMPILER_WARNING (CWE-252): [#def9] libxcb-1.17.0-build/libxcb-1.17.0/src/xcb_conn.c:207:13: warning[-Wunused-result]: ignoring return value of 'write' declared with attribute 'warn_unused_result' # 207 | write(STDERR_FILENO, xcb_setup_authenticate_reason(setup), xcb_setup_authenticate_reason_length(setup)); # | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # 205| { # 206| xcb_setup_authenticate_t *setup = (xcb_setup_authenticate_t *) c->setup; # 207|-> write(STDERR_FILENO, xcb_setup_authenticate_reason(setup), xcb_setup_authenticate_reason_length(setup)); # 208| write(STDERR_FILENO, &newline, 1); # 209| return 0; Error: COMPILER_WARNING (CWE-252): [#def10] libxcb-1.17.0-build/libxcb-1.17.0/src/xcb_conn.c:208:13: warning[-Wunused-result]: ignoring return value of 'write' declared with attribute 'warn_unused_result' # 208 | write(STDERR_FILENO, &newline, 1); # | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # 206| xcb_setup_authenticate_t *setup = (xcb_setup_authenticate_t *) c->setup; # 207| write(STDERR_FILENO, xcb_setup_authenticate_reason(setup), xcb_setup_authenticate_reason_length(setup)); # 208|-> write(STDERR_FILENO, &newline, 1); # 209| return 0; # 210| } Error: GCC_ANALYZER_WARNING (CWE-476): [#def11] libxcb-1.17.0-build/libxcb-1.17.0/src/xcb_conn.c: scope_hint: In function 'write_vec' libxcb-1.17.0-build/libxcb-1.17.0/src/xcb_conn.c:282:23: warning[-Wanalyzer-null-dereference]: dereference of NULL 'hdr' libxcb-1.17.0-build/libxcb-1.17.0/src/xcb_conn.c:32: included_from: Included from here. /usr/include/sys/socket.h:33: included_from: Included from here. libxcb-1.17.0-build/libxcb-1.17.0/src/xcb_conn.c:53: included_from: Included from here. # 280| struct cmsghdr *hdr = CMSG_FIRSTHDR(&msg); # 281| # 282|-> hdr->cmsg_len = msg.msg_controllen; # 283| hdr->cmsg_level = SOL_SOCKET; # 284| hdr->cmsg_type = SCM_RIGHTS; Error: GCC_ANALYZER_WARNING (CWE-787): [#def12] libxcb-1.17.0-build/libxcb-1.17.0/src/xcb_out.c: scope_hint: In function 'xcb_send_request_with_fds64' libxcb-1.17.0-build/libxcb-1.17.0/src/xcb_out.c:292:46: warning[-Wanalyzer-out-of-bounds]: buffer overflow libxcb-1.17.0-build/libxcb-1.17.0/src/xcb_out.c:32: included_from: Included from here. libxcb-1.17.0-build/libxcb-1.17.0/src/xcb_out.c:292:46: note: write of 1 byte to beyond the end of 'pad' libxcb-1.17.0-build/libxcb-1.17.0/src/xcb_out.c:292:46: note: valid subscripts for 'pad' are '[0]' to '[2]' # 290| # 291| /* set the length field. */ # 292|-> ((uint16_t *) vector[0].iov_base)[1] = shortlen; # 293| if(!shortlen) # 294| { Error: GCC_ANALYZER_WARNING (CWE-471): [#def13] libxcb-1.17.0-build/libxcb-1.17.0/src/xcb_out.c:292:46: warning[-Wanalyzer-write-to-const]: write to 'const' object 'pad' libxcb-1.17.0-build/libxcb-1.17.0/src/xcb_out.c:244:27: note: declared here # 290| # 291| /* set the length field. */ # 292|-> ((uint16_t *) vector[0].iov_base)[1] = shortlen; # 293| if(!shortlen) # 294| { Error: GCC_ANALYZER_WARNING (CWE-126): [#def14] libxcb-1.17.0-build/libxcb-1.17.0/src/xcb_out.c:295:58: warning[-Wanalyzer-out-of-bounds]: buffer over-read libxcb-1.17.0-build/libxcb-1.17.0/src/xcb_out.c:295:58: note: read of 1 byte from after the end of 'pad' libxcb-1.17.0-build/libxcb-1.17.0/src/xcb_out.c:295:58: note: valid subscripts for 'pad' are '[0]' to '[2]' # 293| if(!shortlen) # 294| { # 295|-> prefix[0] = ((uint32_t *) vector[0].iov_base)[0]; # 296| prefix[1] = ++longlen; # 297| vector[0].iov_base = (uint32_t *) vector[0].iov_base + 1; Error: GCC_ANALYZER_WARNING (CWE-126): [#def15] libxcb-1.17.0-build/libxcb-1.17.0/src/xcb_out.c:310:69: warning[-Wanalyzer-out-of-bounds]: buffer over-read libxcb-1.17.0-build/libxcb-1.17.0/src/xcb_out.c:310:69: note: read of 4 bytes from after the end of 'pad' libxcb-1.17.0-build/libxcb-1.17.0/src/xcb_out.c:310:69: note: valid subscripts for 'pad' are '[0]' to '[2]' # 308| * configuration, but that should be handled here anyway. */ # 309| if(req->ext && !req->isvoid && !strcmp(req->ext->name, "GLX") && # 310|-> ((req->opcode == 17 && ((uint32_t *) vector[0].iov_base)[1] == 0x10004) || # 311| req->opcode == 21)) # 312| workaround = WORKAROUND_GLX_GET_FB_CONFIGS_BUG; Error: GCC_ANALYZER_WARNING (CWE-835): [#def16] libxcb-1.17.0-build/libxcb-1.17.0/src/xcb_out.c: scope_hint: In function 'xcb_take_socket' libxcb-1.17.0-build/libxcb-1.17.0/src/xcb_out.c:388:15: warning[-Wanalyzer-infinite-loop]: infinite loop libxcb-1.17.0-build/libxcb-1.17.0/src/xcb_out.c:43: included_from: Included from here. libxcb-1.17.0-build/libxcb-1.17.0/src/xcbint.h:66:54: note: in definition of macro 'XCB_SEQUENCE_COMPARE' # 386| */ # 387| do # 388|-> ret = _xcb_out_flush_to(c, c->out.request); # 389| while (ret && c->out.request != c->out.request_written); # 390| if(ret) Error: GCC_ANALYZER_WARNING (CWE-688): [#def17] libxcb-1.17.0-build/libxcb-1.17.0/src/xinput.c: scope_hint: In function 'xcb_input_input_info_info_serialize' libxcb-1.17.0-build/libxcb-1.17.0/src/xinput.c:498:13: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL 'xcb_tmp' where non-null expected <built-in>: note: argument 1 of '__builtin_memcpy' must be non-null # 496| for(i=0; i<xcb_parts_idx; i++) { # 497| if (0 != xcb_parts[i].iov_base && 0 != xcb_parts[i].iov_len) # 498|-> memcpy(xcb_tmp, xcb_parts[i].iov_base, xcb_parts[i].iov_len); # 499| if (0 != xcb_parts[i].iov_len) # 500| xcb_tmp += xcb_parts[i].iov_len; Error: GCC_ANALYZER_WARNING (CWE-688): [#def18] libxcb-1.17.0-build/libxcb-1.17.0/src/xinput.c: scope_hint: In function 'xcb_input_feedback_state_data_serialize' libxcb-1.17.0-build/libxcb-1.17.0/src/xinput.c:3304:13: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL 'xcb_tmp' where non-null expected <built-in>: note: argument 1 of '__builtin_memcpy' must be non-null # 3302| for(i=0; i<xcb_parts_idx; i++) { # 3303| if (0 != xcb_parts[i].iov_base && 0 != xcb_parts[i].iov_len) # 3304|-> memcpy(xcb_tmp, xcb_parts[i].iov_base, xcb_parts[i].iov_len); # 3305| if (0 != xcb_parts[i].iov_len) # 3306| xcb_tmp += xcb_parts[i].iov_len; Error: GCC_ANALYZER_WARNING (CWE-688): [#def19] libxcb-1.17.0-build/libxcb-1.17.0/src/xinput.c: scope_hint: In function 'xcb_input_feedback_ctl_data_serialize' libxcb-1.17.0-build/libxcb-1.17.0/src/xinput.c:4053:13: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL 'xcb_tmp' where non-null expected <built-in>: note: argument 1 of '__builtin_memcpy' must be non-null # 4051| for(i=0; i<xcb_parts_idx; i++) { # 4052| if (0 != xcb_parts[i].iov_base && 0 != xcb_parts[i].iov_len) # 4053|-> memcpy(xcb_tmp, xcb_parts[i].iov_base, xcb_parts[i].iov_len); # 4054| if (0 != xcb_parts[i].iov_len) # 4055| xcb_tmp += xcb_parts[i].iov_len; Error: GCC_ANALYZER_WARNING (CWE-688): [#def20] libxcb-1.17.0-build/libxcb-1.17.0/src/xinput.c: scope_hint: In function 'xcb_input_input_state_data_serialize' libxcb-1.17.0-build/libxcb-1.17.0/src/xinput.c:5353:13: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL 'xcb_tmp' where non-null expected <built-in>: note: argument 1 of '__builtin_memcpy' must be non-null # 5351| for(i=0; i<xcb_parts_idx; i++) { # 5352| if (0 != xcb_parts[i].iov_base && 0 != xcb_parts[i].iov_len) # 5353|-> memcpy(xcb_tmp, xcb_parts[i].iov_base, xcb_parts[i].iov_len); # 5354| if (0 != xcb_parts[i].iov_len) # 5355| xcb_tmp += xcb_parts[i].iov_len; Error: GCC_ANALYZER_WARNING (CWE-688): [#def21] libxcb-1.17.0-build/libxcb-1.17.0/src/xinput.c: scope_hint: In function 'xcb_input_change_device_property_items_serialize' libxcb-1.17.0-build/libxcb-1.17.0/src/xinput.c:7691:13: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL 'xcb_tmp' where non-null expected <built-in>: note: argument 1 of '__builtin_memcpy' must be non-null # 7689| for(i=0; i<xcb_parts_idx; i++) { # 7690| if (0 != xcb_parts[i].iov_base && 0 != xcb_parts[i].iov_len) # 7691|-> memcpy(xcb_tmp, xcb_parts[i].iov_base, xcb_parts[i].iov_len); # 7692| if (0 != xcb_parts[i].iov_len) # 7693| xcb_tmp += xcb_parts[i].iov_len; Error: GCC_ANALYZER_WARNING (CWE-688): [#def22] libxcb-1.17.0-build/libxcb-1.17.0/src/xinput.c: scope_hint: In function 'xcb_input_get_device_property_items_serialize' libxcb-1.17.0-build/libxcb-1.17.0/src/xinput.c:8263:13: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL 'xcb_tmp' where non-null expected <built-in>: note: argument 1 of '__builtin_memcpy' must be non-null # 8261| for(i=0; i<xcb_parts_idx; i++) { # 8262| if (0 != xcb_parts[i].iov_base && 0 != xcb_parts[i].iov_len) # 8263|-> memcpy(xcb_tmp, xcb_parts[i].iov_base, xcb_parts[i].iov_len); # 8264| if (0 != xcb_parts[i].iov_len) # 8265| xcb_tmp += xcb_parts[i].iov_len; Error: GCC_ANALYZER_WARNING (CWE-688): [#def23] libxcb-1.17.0-build/libxcb-1.17.0/src/xinput.c: scope_hint: In function 'xcb_input_hierarchy_change_data_serialize' libxcb-1.17.0-build/libxcb-1.17.0/src/xinput.c:9108:13: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL 'xcb_tmp' where non-null expected <built-in>: note: argument 1 of '__builtin_memcpy' must be non-null # 9106| for(i=0; i<xcb_parts_idx; i++) { # 9107| if (0 != xcb_parts[i].iov_base && 0 != xcb_parts[i].iov_len) # 9108|-> memcpy(xcb_tmp, xcb_parts[i].iov_base, xcb_parts[i].iov_len); # 9109| if (0 != xcb_parts[i].iov_len) # 9110| xcb_tmp += xcb_parts[i].iov_len; Error: GCC_ANALYZER_WARNING (CWE-688): [#def24] libxcb-1.17.0-build/libxcb-1.17.0/src/xinput.c: scope_hint: In function 'xcb_input_device_class_data_serialize' libxcb-1.17.0-build/libxcb-1.17.0/src/xinput.c:10385:13: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL 'xcb_tmp' where non-null expected <built-in>: note: argument 1 of '__builtin_memcpy' must be non-null #10383| for(i=0; i<xcb_parts_idx; i++) { #10384| if (0 != xcb_parts[i].iov_base && 0 != xcb_parts[i].iov_len) #10385|-> memcpy(xcb_tmp, xcb_parts[i].iov_base, xcb_parts[i].iov_len); #10386| if (0 != xcb_parts[i].iov_len) #10387| xcb_tmp += xcb_parts[i].iov_len; Error: GCC_ANALYZER_WARNING (CWE-688): [#def25] libxcb-1.17.0-build/libxcb-1.17.0/src/xinput.c: scope_hint: In function 'xcb_input_xi_change_property_items_serialize' libxcb-1.17.0-build/libxcb-1.17.0/src/xinput.c:11885:13: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL 'xcb_tmp' where non-null expected <built-in>: note: argument 1 of '__builtin_memcpy' must be non-null #11883| for(i=0; i<xcb_parts_idx; i++) { #11884| if (0 != xcb_parts[i].iov_base && 0 != xcb_parts[i].iov_len) #11885|-> memcpy(xcb_tmp, xcb_parts[i].iov_base, xcb_parts[i].iov_len); #11886| if (0 != xcb_parts[i].iov_len) #11887| xcb_tmp += xcb_parts[i].iov_len; Error: GCC_ANALYZER_WARNING (CWE-688): [#def26] libxcb-1.17.0-build/libxcb-1.17.0/src/xinput.c: scope_hint: In function 'xcb_input_xi_get_property_items_serialize' libxcb-1.17.0-build/libxcb-1.17.0/src/xinput.c:12453:13: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL 'xcb_tmp' where non-null expected <built-in>: note: argument 1 of '__builtin_memcpy' must be non-null #12451| for(i=0; i<xcb_parts_idx; i++) { #12452| if (0 != xcb_parts[i].iov_base && 0 != xcb_parts[i].iov_len) #12453|-> memcpy(xcb_tmp, xcb_parts[i].iov_base, xcb_parts[i].iov_len); #12454| if (0 != xcb_parts[i].iov_len) #12455| xcb_tmp += xcb_parts[i].iov_len; Error: GCC_ANALYZER_WARNING (CWE-688): [#def27] libxcb-1.17.0-build/libxcb-1.17.0/src/xkb.c: scope_hint: In function 'xcb_xkb_select_events_details_serialize' libxcb-1.17.0-build/libxcb-1.17.0/src/xkb.c:2167:13: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL 'xcb_tmp' where non-null expected <built-in>: note: argument 1 of '__builtin_memcpy' must be non-null # 2165| for(i=0; i<xcb_parts_idx; i++) { # 2166| if (0 != xcb_parts[i].iov_base && 0 != xcb_parts[i].iov_len) # 2167|-> memcpy(xcb_tmp, xcb_parts[i].iov_base, xcb_parts[i].iov_len); # 2168| if (0 != xcb_parts[i].iov_len) # 2169| xcb_tmp += xcb_parts[i].iov_len; Error: GCC_ANALYZER_WARNING (CWE-688): [#def28] libxcb-1.17.0-build/libxcb-1.17.0/src/xkb.c: scope_hint: In function 'xcb_xkb_get_map_map_serialize' libxcb-1.17.0-build/libxcb-1.17.0/src/xkb.c:3499:13: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL 'xcb_tmp' where non-null expected <built-in>: note: argument 1 of '__builtin_memcpy' must be non-null # 3497| for(i=0; i<xcb_parts_idx; i++) { # 3498| if (0 != xcb_parts[i].iov_base && 0 != xcb_parts[i].iov_len) # 3499|-> memcpy(xcb_tmp, xcb_parts[i].iov_base, xcb_parts[i].iov_len); # 3500| if (0 != xcb_parts[i].iov_len) # 3501| xcb_tmp += xcb_parts[i].iov_len; Error: GCC_ANALYZER_WARNING (CWE-688): [#def29] libxcb-1.17.0-build/libxcb-1.17.0/src/xkb.c: scope_hint: In function 'xcb_xkb_set_map_values_serialize' libxcb-1.17.0-build/libxcb-1.17.0/src/xkb.c:4371:13: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL 'xcb_tmp' where non-null expected <built-in>: note: argument 1 of '__builtin_memcpy' must be non-null # 4369| for(i=0; i<xcb_parts_idx; i++) { # 4370| if (0 != xcb_parts[i].iov_base && 0 != xcb_parts[i].iov_len) # 4371|-> memcpy(xcb_tmp, xcb_parts[i].iov_base, xcb_parts[i].iov_len); # 4372| if (0 != xcb_parts[i].iov_len) # 4373| xcb_tmp += xcb_parts[i].iov_len; Error: GCC_ANALYZER_WARNING (CWE-688): [#def30] libxcb-1.17.0-build/libxcb-1.17.0/src/xkb.c: scope_hint: In function 'xcb_xkb_get_names_value_list_serialize' libxcb-1.17.0-build/libxcb-1.17.0/src/xkb.c:6340:13: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL 'xcb_tmp' where non-null expected <built-in>: note: argument 1 of '__builtin_memcpy' must be non-null # 6338| for(i=0; i<xcb_parts_idx; i++) { # 6339| if (0 != xcb_parts[i].iov_base && 0 != xcb_parts[i].iov_len) # 6340|-> memcpy(xcb_tmp, xcb_parts[i].iov_base, xcb_parts[i].iov_len); # 6341| if (0 != xcb_parts[i].iov_len) # 6342| xcb_tmp += xcb_parts[i].iov_len; Error: GCC_ANALYZER_WARNING (CWE-688): [#def31] libxcb-1.17.0-build/libxcb-1.17.0/src/xkb.c: scope_hint: In function 'xcb_xkb_set_names_values_serialize' libxcb-1.17.0-build/libxcb-1.17.0/src/xkb.c:7236:13: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL 'xcb_tmp' where non-null expected <built-in>: note: argument 1 of '__builtin_memcpy' must be non-null # 7234| for(i=0; i<xcb_parts_idx; i++) { # 7235| if (0 != xcb_parts[i].iov_base && 0 != xcb_parts[i].iov_len) # 7236|-> memcpy(xcb_tmp, xcb_parts[i].iov_base, xcb_parts[i].iov_len); # 7237| if (0 != xcb_parts[i].iov_len) # 7238| xcb_tmp += xcb_parts[i].iov_len; Error: GCC_ANALYZER_WARNING (CWE-688): [#def32] libxcb-1.17.0-build/libxcb-1.17.0/src/xkb.c: scope_hint: In function 'xcb_xkb_get_kbd_by_name_replies_types_map_serialize' libxcb-1.17.0-build/libxcb-1.17.0/src/xkb.c:8609:13: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL 'xcb_tmp' where non-null expected <built-in>: note: argument 1 of '__builtin_memcpy' must be non-null # 8607| for(i=0; i<xcb_parts_idx; i++) { # 8608| if (0 != xcb_parts[i].iov_base && 0 != xcb_parts[i].iov_len) # 8609|-> memcpy(xcb_tmp, xcb_parts[i].iov_base, xcb_parts[i].iov_len); # 8610| if (0 != xcb_parts[i].iov_len) # 8611| xcb_tmp += xcb_parts[i].iov_len; Error: GCC_ANALYZER_WARNING (CWE-688): [#def33] libxcb-1.17.0-build/libxcb-1.17.0/src/xkb.c: scope_hint: In function 'xcb_xkb_get_kbd_by_name_replies_key_names_value_list_serialize' libxcb-1.17.0-build/libxcb-1.17.0/src/xkb.c:9389:13: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL 'xcb_tmp' where non-null expected <built-in>: note: argument 1 of '__builtin_memcpy' must be non-null # 9387| for(i=0; i<xcb_parts_idx; i++) { # 9388| if (0 != xcb_parts[i].iov_base && 0 != xcb_parts[i].iov_len) # 9389|-> memcpy(xcb_tmp, xcb_parts[i].iov_base, xcb_parts[i].iov_len); # 9390| if (0 != xcb_parts[i].iov_len) # 9391| xcb_tmp += xcb_parts[i].iov_len; Error: GCC_ANALYZER_WARNING (CWE-688): [#def34] libxcb-1.17.0-build/libxcb-1.17.0/src/xproto.c: scope_hint: In function 'xcb_create_window_value_list_serialize' libxcb-1.17.0-build/libxcb-1.17.0/src/xproto.c:1179:13: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL 'xcb_tmp' where non-null expected <built-in>: note: argument 1 of '__builtin_memcpy' must be non-null # 1177| for(i=0; i<xcb_parts_idx; i++) { # 1178| if (0 != xcb_parts[i].iov_base && 0 != xcb_parts[i].iov_len) # 1179|-> memcpy(xcb_tmp, xcb_parts[i].iov_base, xcb_parts[i].iov_len); # 1180| if (0 != xcb_parts[i].iov_len) # 1181| xcb_tmp += xcb_parts[i].iov_len; Error: GCC_ANALYZER_WARNING (CWE-688): [#def35] libxcb-1.17.0-build/libxcb-1.17.0/src/xproto.c: scope_hint: In function 'xcb_change_window_attributes_value_list_serialize' libxcb-1.17.0-build/libxcb-1.17.0/src/xproto.c:1730:13: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL 'xcb_tmp' where non-null expected <built-in>: note: argument 1 of '__builtin_memcpy' must be non-null # 1728| for(i=0; i<xcb_parts_idx; i++) { # 1729| if (0 != xcb_parts[i].iov_base && 0 != xcb_parts[i].iov_len) # 1730|-> memcpy(xcb_tmp, xcb_parts[i].iov_base, xcb_parts[i].iov_len); # 1731| if (0 != xcb_parts[i].iov_len) # 1732| xcb_tmp += xcb_parts[i].iov_len; Error: GCC_ANALYZER_WARNING (CWE-688): [#def36] libxcb-1.17.0-build/libxcb-1.17.0/src/xproto.c: scope_hint: In function 'xcb_configure_window_value_list_serialize' libxcb-1.17.0-build/libxcb-1.17.0/src/xproto.c:2657:13: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL 'xcb_tmp' where non-null expected <built-in>: note: argument 1 of '__builtin_memcpy' must be non-null # 2655| for(i=0; i<xcb_parts_idx; i++) { # 2656| if (0 != xcb_parts[i].iov_base && 0 != xcb_parts[i].iov_len) # 2657|-> memcpy(xcb_tmp, xcb_parts[i].iov_base, xcb_parts[i].iov_len); # 2658| if (0 != xcb_parts[i].iov_len) # 2659| xcb_tmp += xcb_parts[i].iov_len; Error: GCC_ANALYZER_WARNING (CWE-688): [#def37] libxcb-1.17.0-build/libxcb-1.17.0/src/xproto.c: scope_hint: In function 'xcb_create_gc_value_list_serialize' libxcb-1.17.0-build/libxcb-1.17.0/src/xproto.c:6824:13: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL 'xcb_tmp' where non-null expected <built-in>: note: argument 1 of '__builtin_memcpy' must be non-null # 6822| for(i=0; i<xcb_parts_idx; i++) { # 6823| if (0 != xcb_parts[i].iov_base && 0 != xcb_parts[i].iov_len) # 6824|-> memcpy(xcb_tmp, xcb_parts[i].iov_base, xcb_parts[i].iov_len); # 6825| if (0 != xcb_parts[i].iov_len) # 6826| xcb_tmp += xcb_parts[i].iov_len; Error: GCC_ANALYZER_WARNING (CWE-688): [#def38] libxcb-1.17.0-build/libxcb-1.17.0/src/xproto.c: scope_hint: In function 'xcb_change_gc_value_list_serialize' libxcb-1.17.0-build/libxcb-1.17.0/src/xproto.c:7435:13: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL 'xcb_tmp' where non-null expected <built-in>: note: argument 1 of '__builtin_memcpy' must be non-null # 7433| for(i=0; i<xcb_parts_idx; i++) { # 7434| if (0 != xcb_parts[i].iov_base && 0 != xcb_parts[i].iov_len) # 7435|-> memcpy(xcb_tmp, xcb_parts[i].iov_base, xcb_parts[i].iov_len); # 7436| if (0 != xcb_parts[i].iov_len) # 7437| xcb_tmp += xcb_parts[i].iov_len; Error: GCC_ANALYZER_WARNING (CWE-688): [#def39] libxcb-1.17.0-build/libxcb-1.17.0/src/xproto.c: scope_hint: In function 'xcb_change_keyboard_control_value_list_serialize' libxcb-1.17.0-build/libxcb-1.17.0/src/xproto.c:12782:13: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL 'xcb_tmp' where non-null expected <built-in>: note: argument 1 of '__builtin_memcpy' must be non-null #12780| for(i=0; i<xcb_parts_idx; i++) { #12781| if (0 != xcb_parts[i].iov_base && 0 != xcb_parts[i].iov_len) #12782|-> memcpy(xcb_tmp, xcb_parts[i].iov_base, xcb_parts[i].iov_len); #12783| if (0 != xcb_parts[i].iov_len) #12784| xcb_tmp += xcb_parts[i].iov_len;
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-139.us-west-2.compute.internal |
mock-config | fedora-rawhide-gcc-latest-x86_64 |
project-name | libxcb-1.17.0-3.fc42 |
store-results-to | /tmp/tmpidgkqhx3/libxcb-1.17.0-3.fc42.tar.xz |
time-created | 2024-11-13 01:50:24 |
time-finished | 2024-11-13 01:53:33 |
tool | csmock |
tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'clippy,cppcheck,gcc,unicontrol,shellcheck' '-o' '/tmp/tmpidgkqhx3/libxcb-1.17.0-3.fc42.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmpidgkqhx3/libxcb-1.17.0-3.fc42.src.rpm' |
tool-version | csmock-3.7.1.20241107.094801.gb3f0f26.pr_192-1.el9 |