Harald Welte
4d45ae8289
not only is it a signed/unsigned error, but on some architectures the sizes of those two types are not identical, leading to a buffer overflow on the stack. gcc-11.2 is complaining about it: bridge.c: In function ‘ph_control’: bridge.c:159:9: error: array subscript 2 is outside array bounds of ‘unsigned char[16]’ [-Werror=array-bounds] 159 | *d++ = c2; | ^~~~ bridge.c:150:23: note: while referencing ‘data’ 150 | unsigned char data[MISDN_HEADER_LEN+sizeof(int)+sizeof(int)]; | ^~~~ |
||
---|---|---|
.. | ||
.gitignore | ||
Makefile.am | ||
bridge.c |