• Eric Pouech's avatar
    rpcrt4: Fix GCC12.2 warnings. · 7ffcd660
    Eric Pouech authored
    GCC12.2 warns about dereferencing a pointer to RpcPktHdr
    while it has been allocated to the size of one of the packet
    (hence smaller in some cases).
    
    /home/eric/work/wine/dlls/rpcrt4/rpc_message.c:111:26: warning: array subscript 'RpcPktHdr[0]' is partly outside array bounds of 'unsigned char[24]' [-Warray-bounds]
      111 |   Header->common.rpc_ver = RPC_VER_MAJOR;
    
    This patch fixes the warnings by accessing the created object
    through a pointer to their type (and not through the union).
    Signed-off-by: 's avatarEric Pouech <eric.pouech@gmail.com>
    7ffcd660
Name
Last commit
Last update
..
tests Loading commit data...
Makefile.in Loading commit data...
cproxy.c Loading commit data...
cpsf.c Loading commit data...
cpsf.h Loading commit data...
cstub.c Loading commit data...
epm.idl Loading commit data...
epm_towers.h Loading commit data...
ncastatus.h Loading commit data...
ndr_clientserver.c Loading commit data...
ndr_contexthandle.c Loading commit data...
ndr_es.c Loading commit data...
ndr_fullpointer.c Loading commit data...
ndr_marshall.c Loading commit data...
ndr_misc.h Loading commit data...
ndr_ole.c Loading commit data...
ndr_stubless.c Loading commit data...
ndr_stubless.h Loading commit data...
ndr_typelib.c Loading commit data...
ndr_types.idl Loading commit data...
rpc_assoc.c Loading commit data...
rpc_assoc.h Loading commit data...
rpc_async.c Loading commit data...
rpc_binding.c Loading commit data...
rpc_binding.h Loading commit data...
rpc_defs.h Loading commit data...
rpc_epmap.c Loading commit data...
rpc_message.c Loading commit data...
rpc_message.h Loading commit data...
rpc_server.c Loading commit data...
rpc_server.h Loading commit data...
rpc_transport.c Loading commit data...
rpcrt4.spec Loading commit data...
rpcrt4_main.c Loading commit data...
version.rc Loading commit data...