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: Gregory John Casamento
Subject: [bug #62176] 2 problems compiling gnustep-base
Date: Mon, 17 Oct 2022 17:59:49 -0400 (EDT)

Follow-up Comment #1, bug #62176 (project gnustep):

I don't understand what the error is here... I see warnings.   Are you getting
a successful build?

[comment #0 original submission:]
> 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]