bug-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

problems compiling gnustep-base


From: Carl Hansen
Subject: problems compiling gnustep-base
Date: Sat, 5 Mar 2022 03:23:03 -0500
User-agent: Mutt/1.9.4 (2018-02-28)

 Compiling file GSValue.m ...
In function 'GSPrivateSockaddrPort',
    inlined from 'GSPrivateSockaddrPort' at GSSocketStream.m:118:1,
    inlined from '-[GSSocketStream propertyForKey:]' at GSSocketStream.m:1595:8:
GSSocketStream.m:127:12: warning: array subscript 'struct sockaddr_in6[0]' is 
partly outside array bounds of 'struct sockaddr[1]' [-Warray-bounds]
  127 |       port = addr6->sin6_port;
      |       ~~~~~^~~~~~~~~~~~~~~~~~
GSSocketStream.m: In function '-[GSSocketStream propertyForKey:]':
GSSocketStream.m:1564:25: note: object 'sin' of size 16
 1564 |       struct sockaddr   sin;
      |                         ^~~
In function 'GSPrivateSockaddrPort',
    inlined from 'GSPrivateSockaddrPort' at GSSocketStream.m:118:1,
    inlined from '-[GSSocketStream propertyForKey:]' at GSSocketStream.m:1580:8:
GSSocketStream.m:127:12: warning: array subscript 'struct sockaddr_in6[0]' is 
partly outside array bounds of 'struct sockaddr[1]' [-Warray-bounds]
  127 |       port = addr6->sin6_port;
      |       ~~~~~^~~~~~~~~~~~~~~~~~
GSSocketStream.m: In function '-[GSSocketStream propertyForKey:]':
GSSocketStream.m:1564:25: note: object 'sin' of size 16
 1564 |       struct sockaddr   sin;
      |                         ^~~



Compiling file NSMessagePort.m ...
NSZone.m: In function 'NSCreateZone':
NSZone.m:1652:13: warning: pointer 'zone' used after 'free' [-Wuse-after-free]
 1652 |       block = zone->blocks;
      |       ~~~~~~^~~~~~~~~~~~~~
NSZone.m:1645:11: note: call to 'free' here
 1645 |           free(zone);
      |           ^~~~~~~~~~
NSZone.m:1700:13: warning: pointer 'zone' used after 'free' [-Wuse-after-free]
 1700 |       block = zone->blocks;
      |       ~~~~~~^~~~~~~~~~~~~~
NSZone.m:1695:11: note: call to 'free' here
 1695 |           free(zone);
      |           ^~~~~~~~~~
 Compiling file NSMessagePortNameServer.m ...
 Compiling file GSFFIInvocation.m ...
NSMessagePort.m: In function 'newDataWithEncodedPort':
NSMessagePort.m:199:3: warning: 'strncpy' offset 9 from the object at 
'<unknown>' is out of the bounds of referenced subobject 'addr' with type 
'unsigned char[0]' at offset 9 [-Warray-bounds]
  199 |   strncpy((char*)pi->addr, (char*)name, strlen((char*)name) + 1);
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
NSMessagePort.m:154:17: note: subobject 'addr' declared here
  154 |   unsigned char addr[0];        /* name of the port on the local host   
*/
      |                 ^~~~
NSMessagePortNameServer.m: In function '+[NSMessagePortNameServer _livePort:]':
NSMessagePortNameServer.m:398:7: warning: 'strncpy' output may be truncated 
copying 107 bytes from a string of length 511 [-Wstringop-truncation]
  398 |       strncpy(sockAddr.sun_path, socket_path, sizeof(sockAddr.sun_path) 
- 1);
      |       
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 Linking library libgnustep-base ...
 Creating Info-gnustep.plist...




reply via email to

[Prev in Thread] Current Thread [Next in Thread]