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)]; | ^~~~ |
||
---|---|---|
bridge | ||
capi20 | ||
example | ||
guitools | ||
include | ||
l1oip | ||
lib | ||
tools | ||
.cvsignore | ||
.gitignore | ||
45-misdn.rules.in | ||
AUTHORS | ||
COPYING.LIB | ||
CodeStyle | ||
GNUmakefile | ||
INSTALL | ||
LICENSE | ||
Makefile.am | ||
NEWS | ||
README | ||
_config.yml | ||
acinclude.m4 | ||
checkout-branch.sh | ||
configure.ac | ||
mISDNuser.spec |
README
This package contain the libmisdn library and some utilities for the mISDN version 2 Linux ISDN stack. To build it you need the GNU autotools: automake autoconf libtools You can create the files automatically with running make. After this run ./configure with your options and make again.