Closed GruberMarkus closed 5 months ago
After applying the most recent oscam-emu patch to the most recent oscam code, the following warnings appear when compiling.
Can they be ignored, or is this a problem in the patch file?
BUILD PATCHED OSCAM ====================================================================== RM build/* RM tests.bin RM tests.bin.debug RM Distribution/list_smargo-* RM Distribution/oscam-1.20_svn* Enabling all config options. Enable TOUCH Enable WITH_NEUTRINO Enable CS_ANTICASC Enable CS_CACHEEX Enable CS_CACHEEX_AIO Enable CW_CYCLE_CHECK Enable LCDSUPPORT Enable LEDSUPPORT Enable CLOCKFIX Enable IPV6SUPPORT Enable MODULE_CAMD33 Enable MODULE_SERIAL Enable MODULE_CONSTCW Enable MODULE_PANDORA Enable MODULE_GHTTP Enable CARDREADER_SC8IN1 Enable CARDREADER_MP35 Enable CARDREADER_SMARGO Enable CARDREADER_DB2COM Enable CARDREADER_STAPI Enable CARDREADER_STAPI5 Enable CARDREADER_DRECAS +------------------------------------------------------------------------------- | OSCam ver: 1.20_svn rev: 11727-799 target: arm-linux-gnueabihf-ssl-libusb-pcsc | Tools: | CROSS = | CC = gcc | Settings: | CONF_DIR = /usr/local/etc | CC_OPTS = -O3 -ggdb -pipe -ffunction-sections -fdata-sections -funroll-loops -fomit-frame-pointer -fno-schedule-insns | CC_WARN = -W -Wall -Wshadow -Wredundant-decls -Wstrict-prototypes -Wold-style-definition | CFLAGS = -fexpensive-optimizations -mfpu=neon -DWITH_SSL=1 -DWITH_LIBCRYPTO=1 -DWITH_LIBUSB=1 -DWITH_PCSC=1 -I/usr/include/PCSC -I/usr/include/../local/include/PCSC | LDFLAGS = -Wl,--gc-sections -DWITH_SSL=1 -DWITH_LIBCRYPTO=1 -DWITH_LIBUSB=1 -DWITH_PCSC=1 -I/usr/include/PCSC -I/usr/include/../local/include/PCSC | LIBS = -lssl -lcrypto -lusb-1.0 -lrt -lpcsclite -lm -lpthread -ldl -lrt | UseFlags = USE_SSL=1 USE_LIBCRYPTO=1 USE_LIBUSB=1 USE_PCSC=1 | Config: | Addons : WEBIF WEBIF_LIVELOG WEBIF_JQUERY TOUCH WITH_SSL HAVE_DVBAPI WITH_NEUTRINO READ_SDT_CHARSETS IRDETO_GUESSING CS_ANTICASC WITH_DEBUG MODULE_MONITOR WITH_LB CS_CACHEEX CS_CACHEEX_AIO CW_CYCLE_CHECK LCDSUPPORT LEDSUPPORT CLOCKFIX IPV6SUPPORT WITH_EMU WITH_SOFTCAM WITH_ARM_NEON | Protocols: CAMD33 CAMD35 CAMD35_TCP NEWCAMD CCCAM CCCSHARE GBOX RADEGAST SCAM SERIAL CONSTCW PANDORA GHTTP | Readers : NAGRA NAGRA_MERLIN IRDETO CONAX CRYPTOWORKS SECA VIACCESS VIDEOGUARD DRE TONGFANG BULCRYPT GRIFFIN DGCRYPT| CardRdrs : PHOENIX INTERNAL SC8IN1 MP35 SMARGO DB2COM STAPI STAPI5 STINGER DRECAS SMART PCSC | Compiler : gcc (Raspbian 10.2.1-6+rpi1) 10.2.1 20210110 | Config : build/arm-linux-gnueabihf-ssl-libusb-pcsc/config.mak | Binary : Distribution/oscam-1.20_svn11727-799-arm-linux-gnueabihf-ssl-libusb-pcsc +------------------------------------------------------------------------------- HOSTCC webif/pages_gen GEN webif/pages.c GEN Compressed 490508 template bytes into 185740 bytes. 304768 saved bytes (62.13%). [...] CC module-emulator.c In function ‘emu_add_entitlement’, inlined from ‘refresh_entitlements’ at module-emulator.c:180:3: module-emulator.c:92:3: warning: ‘memcpy’ forming offset 7 is out of the bounds [0, 7] [-Warray-bounds] 92 | memcpy(item->name, keyName, 8); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [...] CC module-emulator-irdeto.c module-emulator-irdeto.c: In function ‘calculate_hash’: module-emulator-irdeto.c:20:17: warning: array subscript 8 is outside array bounds of ‘uint8_t[8]’ {aka ‘unsigned char[8]’} [-Warray-bounds] 20 | data[i] = v1[i] ^ v2[i]; | ~~^~~ module-emulator-irdeto.c:116:10: note: while referencing ‘cbuff’ 116 | uint8_t cbuff[8]; | ^~~~~ module-emulator-irdeto.c:20:13: warning: array subscript 8 is outside array bounds of ‘uint8_t[8]’ {aka ‘unsigned char[8]’} [-Warray-bounds] 20 | data[i] = v1[i] ^ v2[i]; | ~~~~~~~~^~~~~~~~~~~~~~~ module-emulator-irdeto.c:116:10: note: while referencing ‘cbuff’ 116 | uint8_t cbuff[8]; | ^~~~~ module-emulator-irdeto.c:20:17: warning: array subscript 9 is outside array bounds of ‘uint8_t[8]’ {aka ‘unsigned char[8]’} [-Warray-bounds] 20 | data[i] = v1[i] ^ v2[i]; | ~~^~~ module-emulator-irdeto.c:116:10: note: while referencing ‘cbuff’ 116 | uint8_t cbuff[8]; | ^~~~~ module-emulator-irdeto.c:20:13: warning: array subscript 9 is outside array bounds of ‘uint8_t[8]’ {aka ‘unsigned char[8]’} [-Warray-bounds] 20 | data[i] = v1[i] ^ v2[i]; | ~~~~~~~~^~~~~~~~~~~~~~~ module-emulator-irdeto.c:116:10: note: while referencing ‘cbuff’ 116 | uint8_t cbuff[8]; | ^~~~~ module-emulator-irdeto.c:20:17: warning: array subscript 10 is outside array bounds of ‘uint8_t[8]’ {aka ‘unsigned char[8]’} [-Warray-bounds] 20 | data[i] = v1[i] ^ v2[i]; | ~~^~~ module-emulator-irdeto.c:116:10: note: while referencing ‘cbuff’ 116 | uint8_t cbuff[8]; | ^~~~~ module-emulator-irdeto.c:20:13: warning: array subscript 10 is outside array bounds of ‘uint8_t[8]’ {aka ‘unsigned char[8]’} [-Warray-bounds] 20 | data[i] = v1[i] ^ v2[i]; | ~~~~~~~~^~~~~~~~~~~~~~~ module-emulator-irdeto.c:116:10: note: while referencing ‘cbuff’ 116 | uint8_t cbuff[8]; | ^~~~~ module-emulator-irdeto.c:20:17: warning: array subscript 11 is outside array bounds of ‘uint8_t[8]’ {aka ‘unsigned char[8]’} [-Warray-bounds] 20 | data[i] = v1[i] ^ v2[i]; | ~~^~~ module-emulator-irdeto.c:116:10: note: while referencing ‘cbuff’ 116 | uint8_t cbuff[8]; | ^~~~~ module-emulator-irdeto.c:20:13: warning: array subscript 11 is outside array bounds of ‘uint8_t[8]’ {aka ‘unsigned char[8]’} [-Warray-bounds] 20 | data[i] = v1[i] ^ v2[i]; | ~~~~~~~~^~~~~~~~~~~~~~~ module-emulator-irdeto.c:116:10: note: while referencing ‘cbuff’ 116 | uint8_t cbuff[8]; | ^~~~~ module-emulator-irdeto.c:20:17: warning: array subscript 12 is outside array bounds of ‘uint8_t[8]’ {aka ‘unsigned char[8]’} [-Warray-bounds] 20 | data[i] = v1[i] ^ v2[i]; | ~~^~~ module-emulator-irdeto.c:116:10: note: while referencing ‘cbuff’ 116 | uint8_t cbuff[8]; | ^~~~~ module-emulator-irdeto.c:20:13: warning: array subscript 12 is outside array bounds of ‘uint8_t[8]’ {aka ‘unsigned char[8]’} [-Warray-bounds] 20 | data[i] = v1[i] ^ v2[i]; | ~~~~~~~~^~~~~~~~~~~~~~~ module-emulator-irdeto.c:116:10: note: while referencing ‘cbuff’ 116 | uint8_t cbuff[8]; | ^~~~~ module-emulator-irdeto.c:20:17: warning: array subscript 13 is outside array bounds of ‘uint8_t[8]’ {aka ‘unsigned char[8]’} [-Warray-bounds] 20 | data[i] = v1[i] ^ v2[i]; | ~~^~~ module-emulator-irdeto.c:116:10: note: while referencing ‘cbuff’ 116 | uint8_t cbuff[8]; | ^~~~~ module-emulator-irdeto.c:20:13: warning: array subscript 13 is outside array bounds of ‘uint8_t[8]’ {aka ‘unsigned char[8]’} [-Warray-bounds] 20 | data[i] = v1[i] ^ v2[i]; | ~~~~~~~~^~~~~~~~~~~~~~~ module-emulator-irdeto.c:116:10: note: while referencing ‘cbuff’ 116 | uint8_t cbuff[8]; | ^~~~~ module-emulator-irdeto.c:20:17: warning: array subscript 14 is outside array bounds of ‘uint8_t[8]’ {aka ‘unsigned char[8]’} [-Warray-bounds] 20 | data[i] = v1[i] ^ v2[i]; | ~~^~~ module-emulator-irdeto.c:116:10: note: while referencing ‘cbuff’ 116 | uint8_t cbuff[8]; | ^~~~~ module-emulator-irdeto.c:20:13: warning: array subscript 14 is outside array bounds of ‘uint8_t[8]’ {aka ‘unsigned char[8]’} [-Warray-bounds] 20 | data[i] = v1[i] ^ v2[i]; | ~~~~~~~~^~~~~~~~~~~~~~~ module-emulator-irdeto.c:116:10: note: while referencing ‘cbuff’ 116 | uint8_t cbuff[8]; | ^~~~~ module-emulator-irdeto.c:20:17: warning: array subscript 15 is outside array bounds of ‘uint8_t[8]’ {aka ‘unsigned char[8]’} [-Warray-bounds] 20 | data[i] = v1[i] ^ v2[i]; | ~~^~~ module-emulator-irdeto.c:116:10: note: while referencing ‘cbuff’ 116 | uint8_t cbuff[8]; | ^~~~~ module-emulator-irdeto.c:20:13: warning: array subscript 15 is outside array bounds of ‘uint8_t[8]’ {aka ‘unsigned char[8]’} [-Warray-bounds] 20 | data[i] = v1[i] ^ v2[i]; | ~~~~~~~~^~~~~~~~~~~~~~~ module-emulator-irdeto.c:116:10: note: while referencing ‘cbuff’ 116 | uint8_t cbuff[8]; | ^~~~~ [...] CC module-gbox.c module-gbox.c: In function ‘write_msg_info.part.0’: module-gbox.c:144:32: warning: ‘%s’ directive output may be truncated writing up to 127 bytes into a region of size 120 [-Wformat-truncation=] 51 | return gbox_tmpfile_buf; | ~~~~~~~~~~~~~~~~ ...... 144 | snprintf(buf, sizeof(buf), "%s %d %04X %d %s %d", | ^~ module-gbox.c:144:31: note: directive argument in the range [0, 65535] 144 | snprintf(buf, sizeof(buf), "%s %d %04X %d %s %d", | ^~~~~~~~~~~~~~~~~~~~~ module-gbox.c:144:31: note: directive argument in the range [0, 255] module-gbox.c:144:4: note: ‘snprintf’ output 13 or more bytes (assuming 142) into a destination of size 120 144 | snprintf(buf, sizeof(buf), "%s %d %04X %d %s %d", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 145 | fname, msg_id, misc, 0, cs_inet_ntoa(cli->ip), txt_id); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [...] CONF build/arm-linux-gnueabihf-ssl-libusb-pcsc/config.c LINK Distribution/oscam-1.20_svn11727-799-arm-linux-gnueabihf-ssl-libusb-pcsc.debug STRIP Distribution/oscam-1.20_svn11727-799-arm-linux-gnueabihf-ssl-libusb-pcsc BUILD Distribution/list_smargo-1.20_svn11727-799-arm-linux-gnueabihf-ssl-libusb-pcsc
Version 800 dont have this warnings anymore, please test.
After applying the most recent oscam-emu patch to the most recent oscam code, the following warnings appear when compiling.
Can they be ignored, or is this a problem in the patch file?