Project

General

Profile

Actions

Bug #729

closed

S3_1 rscompat_postprocess stringop-overflow warning

Added by Marko Lindqvist 5 months ago. Updated 5 months ago.

Status:
Closed
Priority:
Normal
Category:
Server
Target version:
Start date:
06/25/2024
Due date:
% Done:

0%

Estimated time:

Description

Only in S3_1:

In file included from ../../src/common/fc_types.h:22,
from ../../src/common/actions.h:18,
from ../../src/server/rscompat.c:29:
../../src/server/rscompat.c: In function ‘rscompat_postprocess’:
../../src/utility/bitvector.h:84:35: error: writing 1 byte into a region of size 0 [-Werror=stringop-overflow=]
84 | (bv).vec[_BV_BYTE_INDEX(bit)] |= _BV_BITMASK(bit); \ | ^
../../src/server/rscompat.c:1726:9: note: in expansion of macro ‘BV_SET’
1726 | BV_SET(uc->flags, nothing); | ^~~~
../../src/utility/bitvector.h:133:34: note: at offset 536870911 into destination object ‘vec’ of size 4
133 | typedef struct { unsigned char vec[_BV_BYTES(bits)]; } name | ^~~
./specenum_gen.h:6899:1: note: in expansion of macro ‘BV_DEFINE’
6899 | BV_DEFINE(SPECENUM_BITVECTOR, (SPECENUM_MAX_VALUE + 1)); | ^~~~~~~
cc1: all warnings being treated as errors
[9/401] Compiling C object libfc_server.a.p/server_unithand.c.o
ninja: build stopped: subcommand failed.


Files

Actions #1

Updated by Marko Lindqvist 5 months ago

Actions #2

Updated by Marko Lindqvist 5 months ago

  • Status changed from In Review to Closed
Actions

Also available in: Atom PDF