bug-gnustep
[Top][All Lists]
Advanced

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

[bug #62176] 2 problems compiling gnustep-base


From: Carl Hansen
Subject: [bug #62176] 2 problems compiling gnustep-base
Date: Sun, 13 Mar 2022 04:18:25 -0400 (EDT)

URL:
  <https://savannah.gnu.org/bugs/?62176>

                 Summary: 2 problems compiling gnustep-base
                 Project: GNUstep
            Submitted by: carlh
            Submitted on: Sun 13 Mar 2022 08:18:23 AM UTC
                Category: None
                Severity: 3 - Normal
              Item Group: None
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

averse to github
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);
      |       
 




    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?62176>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

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