libXi-1.8.2-1.fc42

List of Findings

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1]
libXi-1.8.2-build/libXi-1.8.2/src/XExtInt.c: scope_hint: In function 'XInputWireToCookie'
libXi-1.8.2-build/libXi-1.8.2/src/XExtInt.c:935:13: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
#  933|   {
#  934|       XExtDisplayInfo *info = XInput_find_display(dpy);
#  935|->     XEvent *save = (XEvent *) info->data;
#  936|       xGenericEvent* ge = (xGenericEvent*)event;
#  937|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def2]
libXi-1.8.2-build/libXi-1.8.2/src/XExtInt.c: scope_hint: In function 'XInputCopyCookie'
libXi-1.8.2-build/libXi-1.8.2/src/XExtInt.c:1512:30: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
# 1510|       XExtDisplayInfo *info = XInput_find_display(dpy);
# 1511|   
# 1512|->     if (in->extension != info->codes->major_opcode)
# 1513|       {
# 1514|           printf("XInputCopyCookie: wrong extension opcode %d\n",

Error: GCC_ANALYZER_WARNING (CWE-122): [#def3]
libXi-1.8.2-build/libXi-1.8.2/src/XIHierarchy.c: scope_hint: In function 'XIChangeHierarchy'
libXi-1.8.2-build/libXi-1.8.2/src/XIHierarchy.c:108:29: warning[-Wanalyzer-out-of-bounds]: heap-based buffer overflow
libXi-1.8.2-build/libXi-1.8.2/src/XIHierarchy.c:38: included_from: Included from here.
libXi-1.8.2-build/libXi-1.8.2/src/XIHierarchy.c:108:29: note: write of 1 byte to beyond the end of the region
#  106|                       XIAddMasterInfo* C = &any->add;
#  107|                       xXIAddMasterInfo* c = (xXIAddMasterInfo*)dptr;
#  108|->                     c->type = C->type;
#  109|                       c->send_core = C->send_core;
#  110|                       c->enable = C->enable;

Error: GCC_ANALYZER_WARNING (CWE-122): [#def4]
libXi-1.8.2-build/libXi-1.8.2/src/XIHierarchy.c:109:34: warning[-Wanalyzer-out-of-bounds]: heap-based buffer overflow
libXi-1.8.2-build/libXi-1.8.2/src/XIHierarchy.c:109:34: note: write of 1 byte to beyond the end of the region
#  107|                       xXIAddMasterInfo* c = (xXIAddMasterInfo*)dptr;
#  108|                       c->type = C->type;
#  109|->                     c->send_core = C->send_core;
#  110|                       c->enable = C->enable;
#  111|                       c->name_len = strlen(C->name);

Error: GCC_ANALYZER_WARNING (CWE-122): [#def5]
libXi-1.8.2-build/libXi-1.8.2/src/XIHierarchy.c:110:31: warning[-Wanalyzer-out-of-bounds]: heap-based buffer overflow
libXi-1.8.2-build/libXi-1.8.2/src/XIHierarchy.c:110:31: note: write of 1 byte to beyond the end of the region
#  108|                       c->type = C->type;
#  109|                       c->send_core = C->send_core;
#  110|->                     c->enable = C->enable;
#  111|                       c->name_len = strlen(C->name);
#  112|                       c->length = (sizeof(xXIAddMasterInfo) + c->name_len + 3)/4;

Error: GCC_ANALYZER_WARNING (CWE-122): [#def6]
libXi-1.8.2-build/libXi-1.8.2/src/XIHierarchy.c:111:33: warning[-Wanalyzer-out-of-bounds]: heap-based buffer overflow
libXi-1.8.2-build/libXi-1.8.2/src/XIHierarchy.c:111:33: note: write of 2 bytes to beyond the end of the region
#  109|                       c->send_core = C->send_core;
#  110|                       c->enable = C->enable;
#  111|->                     c->name_len = strlen(C->name);
#  112|                       c->length = (sizeof(xXIAddMasterInfo) + c->name_len + 3)/4;
#  113|                       strncpy((char*)&c[1], C->name, c->name_len);

Error: GCC_ANALYZER_WARNING (CWE-122): [#def7]
libXi-1.8.2-build/libXi-1.8.2/src/XIHierarchy.c:112:31: warning[-Wanalyzer-out-of-bounds]: heap-based buffer overflow
libXi-1.8.2-build/libXi-1.8.2/src/XIHierarchy.c:112:31: note: write of 2 bytes to beyond the end of the region
#  110|                       c->enable = C->enable;
#  111|                       c->name_len = strlen(C->name);
#  112|->                     c->length = (sizeof(xXIAddMasterInfo) + c->name_len + 3)/4;
#  113|                       strncpy((char*)&c[1], C->name, c->name_len);
#  114|                       dptr += 4 * c->length;

Error: GCC_ANALYZER_WARNING (CWE-126): [#def8]
libXi-1.8.2-build/libXi-1.8.2/src/XIHierarchy.c:114:34: warning[-Wanalyzer-out-of-bounds]: heap-based buffer over-read
libXi-1.8.2-build/libXi-1.8.2/src/XIHierarchy.c:114:34: note: read of 2 bytes from after the end of the region
#  112|                       c->length = (sizeof(xXIAddMasterInfo) + c->name_len + 3)/4;
#  113|                       strncpy((char*)&c[1], C->name, c->name_len);
#  114|->                     dptr += 4 * c->length;
#  115|                   }
#  116|                   break;

Error: GCC_ANALYZER_WARNING (CWE-122): [#def9]
libXi-1.8.2-build/libXi-1.8.2/src/XIHierarchy.c:121:29: warning[-Wanalyzer-out-of-bounds]: heap-based buffer overflow
libXi-1.8.2-build/libXi-1.8.2/src/XIHierarchy.c:121:29: note: write of 1 byte to beyond the end of the region
#  119|                       XIRemoveMasterInfo* R = &any->remove;
#  120|                       xXIRemoveMasterInfo* r = (xXIRemoveMasterInfo*)dptr;
#  121|->                     r->type = R->type;
#  122|                       r->return_mode = R->return_mode;
#  123|                       r->deviceid = R->deviceid;

Error: GCC_ANALYZER_WARNING (CWE-122): [#def10]
libXi-1.8.2-build/libXi-1.8.2/src/XIHierarchy.c:122:36: warning[-Wanalyzer-out-of-bounds]: heap-based buffer overflow
libXi-1.8.2-build/libXi-1.8.2/src/XIHierarchy.c:122:36: note: write of 1 byte to beyond the end of the region
#  120|                       xXIRemoveMasterInfo* r = (xXIRemoveMasterInfo*)dptr;
#  121|                       r->type = R->type;
#  122|->                     r->return_mode = R->return_mode;
#  123|                       r->deviceid = R->deviceid;
#  124|                       r->length = sizeof(xXIRemoveMasterInfo)/4;

Error: GCC_ANALYZER_WARNING (CWE-122): [#def11]
libXi-1.8.2-build/libXi-1.8.2/src/XIHierarchy.c:123:33: warning[-Wanalyzer-out-of-bounds]: heap-based buffer overflow
libXi-1.8.2-build/libXi-1.8.2/src/XIHierarchy.c:123:33: note: write of 2 bytes to beyond the end of the region
#  121|                       r->type = R->type;
#  122|                       r->return_mode = R->return_mode;
#  123|->                     r->deviceid = R->deviceid;
#  124|                       r->length = sizeof(xXIRemoveMasterInfo)/4;
#  125|                       if (r->return_mode == XIAttachToMaster)

Error: GCC_ANALYZER_WARNING (CWE-122): [#def12]
libXi-1.8.2-build/libXi-1.8.2/src/XIHierarchy.c:124:31: warning[-Wanalyzer-out-of-bounds]: heap-based buffer overflow
libXi-1.8.2-build/libXi-1.8.2/src/XIHierarchy.c:124:31: note: write of 2 bytes to beyond the end of the region
#  122|                       r->return_mode = R->return_mode;
#  123|                       r->deviceid = R->deviceid;
#  124|->                     r->length = sizeof(xXIRemoveMasterInfo)/4;
#  125|                       if (r->return_mode == XIAttachToMaster)
#  126|                       {

Error: GCC_ANALYZER_WARNING (CWE-122): [#def13]
libXi-1.8.2-build/libXi-1.8.2/src/XIHierarchy.c:127:43: warning[-Wanalyzer-out-of-bounds]: heap-based buffer overflow
libXi-1.8.2-build/libXi-1.8.2/src/XIHierarchy.c:127:43: note: write of 2 bytes to beyond the end of the region
#  125|                       if (r->return_mode == XIAttachToMaster)
#  126|                       {
#  127|->                         r->return_pointer = R->return_pointer;
#  128|                           r->return_keyboard = R->return_keyboard;
#  129|                       }

Error: GCC_ANALYZER_WARNING (CWE-122): [#def14]
libXi-1.8.2-build/libXi-1.8.2/src/XIHierarchy.c:128:44: warning[-Wanalyzer-out-of-bounds]: heap-based buffer overflow
libXi-1.8.2-build/libXi-1.8.2/src/XIHierarchy.c:128:44: note: write of 2 bytes to beyond the end of the region
#  126|                       {
#  127|                           r->return_pointer = R->return_pointer;
#  128|->                         r->return_keyboard = R->return_keyboard;
#  129|                       }
#  130|                       dptr += sizeof(xXIRemoveMasterInfo);

Error: GCC_ANALYZER_WARNING (CWE-122): [#def15]
libXi-1.8.2-build/libXi-1.8.2/src/XIHierarchy.c:138:29: warning[-Wanalyzer-out-of-bounds]: heap-based buffer overflow
libXi-1.8.2-build/libXi-1.8.2/src/XIHierarchy.c:138:29: note: write of 1 byte to beyond the end of the region
#  136|                       xXIAttachSlaveInfo* c = (xXIAttachSlaveInfo*)dptr;
#  137|   
#  138|->                     c->type = C->type;
#  139|                       c->deviceid = C->deviceid;
#  140|                       c->length = sizeof(xXIAttachSlaveInfo)/4;

Error: GCC_ANALYZER_WARNING (CWE-122): [#def16]
libXi-1.8.2-build/libXi-1.8.2/src/XIHierarchy.c:139:33: warning[-Wanalyzer-out-of-bounds]: heap-based buffer overflow
libXi-1.8.2-build/libXi-1.8.2/src/XIHierarchy.c:139:33: note: write of 2 bytes to beyond the end of the region
#  137|   
#  138|                       c->type = C->type;
#  139|->                     c->deviceid = C->deviceid;
#  140|                       c->length = sizeof(xXIAttachSlaveInfo)/4;
#  141|                       c->new_master = C->new_master;

Error: GCC_ANALYZER_WARNING (CWE-122): [#def17]
libXi-1.8.2-build/libXi-1.8.2/src/XIHierarchy.c:140:31: warning[-Wanalyzer-out-of-bounds]: heap-based buffer overflow
libXi-1.8.2-build/libXi-1.8.2/src/XIHierarchy.c:140:31: note: write of 2 bytes to beyond the end of the region
#  138|                       c->type = C->type;
#  139|                       c->deviceid = C->deviceid;
#  140|->                     c->length = sizeof(xXIAttachSlaveInfo)/4;
#  141|                       c->new_master = C->new_master;
#  142|   

Error: GCC_ANALYZER_WARNING (CWE-122): [#def18]
libXi-1.8.2-build/libXi-1.8.2/src/XIHierarchy.c:141:35: warning[-Wanalyzer-out-of-bounds]: heap-based buffer overflow
libXi-1.8.2-build/libXi-1.8.2/src/XIHierarchy.c:141:35: note: write of 2 bytes to beyond the end of the region
#  139|                       c->deviceid = C->deviceid;
#  140|                       c->length = sizeof(xXIAttachSlaveInfo)/4;
#  141|->                     c->new_master = C->new_master;
#  142|   
#  143|                       dptr += sizeof(xXIAttachSlaveInfo);

Error: GCC_ANALYZER_WARNING (CWE-122): [#def19]
libXi-1.8.2-build/libXi-1.8.2/src/XIHierarchy.c:151:29: warning[-Wanalyzer-out-of-bounds]: heap-based buffer overflow
libXi-1.8.2-build/libXi-1.8.2/src/XIHierarchy.c:151:29: note: write of 1 byte to beyond the end of the region
#  149|                       xXIDetachSlaveInfo *d = (xXIDetachSlaveInfo*)dptr;
#  150|   
#  151|->                     d->type = D->type;
#  152|                       d->deviceid = D->deviceid;
#  153|                       d->length = sizeof(xXIDetachSlaveInfo)/4;

Error: GCC_ANALYZER_WARNING (CWE-122): [#def20]
libXi-1.8.2-build/libXi-1.8.2/src/XIHierarchy.c:152:33: warning[-Wanalyzer-out-of-bounds]: heap-based buffer overflow
libXi-1.8.2-build/libXi-1.8.2/src/XIHierarchy.c:152:33: note: write of 2 bytes to beyond the end of the region
#  150|   
#  151|                       d->type = D->type;
#  152|->                     d->deviceid = D->deviceid;
#  153|                       d->length = sizeof(xXIDetachSlaveInfo)/4;
#  154|                       dptr += sizeof(xXIDetachSlaveInfo);

Error: GCC_ANALYZER_WARNING (CWE-122): [#def21]
libXi-1.8.2-build/libXi-1.8.2/src/XIHierarchy.c:153:31: warning[-Wanalyzer-out-of-bounds]: heap-based buffer overflow
libXi-1.8.2-build/libXi-1.8.2/src/XIHierarchy.c:153:31: note: write of 2 bytes to beyond the end of the region
#  151|                       d->type = D->type;
#  152|                       d->deviceid = D->deviceid;
#  153|->                     d->length = sizeof(xXIDetachSlaveInfo)/4;
#  154|                       dptr += sizeof(xXIDetachSlaveInfo);
#  155|                   }

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-131.us-west-2.compute.internal
mock-configfedora-rawhide-gcc-latest-x86_64
project-namelibXi-1.8.2-1.fc42
store-results-to/tmp/tmpyz99v4u9/libXi-1.8.2-1.fc42.tar.xz
time-created2024-11-13 01:15:58
time-finished2024-11-13 01:17:25
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'clippy,cppcheck,gcc,unicontrol,shellcheck' '-o' '/tmp/tmpyz99v4u9/libXi-1.8.2-1.fc42.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmpyz99v4u9/libXi-1.8.2-1.fc42.src.rpm'
tool-versioncsmock-3.7.1.20241107.094801.gb3f0f26.pr_192-1.el9