Opened 3 years ago

Last modified 2 years ago

#4500 new enhancement

update reader tongfang to support NTIC2 card

Reported by: nx111 Owned by:
Priority: Please fill in Component: Reader
Severity: Please fill in Keywords:
Cc: Sensitive: no

Description

Reason for enhancement

Reader tongfang module is too old, many version 3 (NTIC2) card not be support. Now, here is the patch, it will support NTIC2 card.

Possible impacts on other features

<Please fill in>

Attachments (4)

0002-fix-some-ecm-data-too-long-increase-the-buffer-size.patch (725 bytes) - added by nx111 3 years ago.
some ecm data too long, must increase the buffer size.
0002-fix-some-ecm-data-too-long-increase-the-buffer-size.2.patch (725 bytes) - added by nx111 3 years ago.
some ecm data too long, must increase the buffer size.
0001-upgrade-reader-tongfang-to-support-version-3-NTIC2.patch (23.6 KB) - added by nx111 3 years ago.
0002-fix-check_sec_len-for-some-large-ecm-data.patch (4.5 KB) - added by nx111 3 years ago.

Download all attachments as: .zip

Change History (6)

Changed 3 years ago by nx111

some ecm data too long, must increase the buffer size.

Changed 3 years ago by nx111

some ecm data too long, must increase the buffer size.

comment:1 Changed 3 years ago by nx111

Now,I update these patches.

comment:2 Changed 2 years ago by the.sniffer

Can you help?
There are Warnings on x86_64:
.
.
.
CC reader-conax.c
In file included from globals.h:2361:0,

from reader-common.c:1:

reader-common.c: In function ‘check_sct_len’:
reader-common.c:29:34: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘size_t {aka long unsigned int}’ [-Wformat=]

cs_log_dbg(D_TRACE | D_READER, "check_sct_len(): smartcard section too long %d > %d", len, maxSize - off);


oscam-log.h:20:142: note: in definition of macro ‘cs_log_dbg’

#define cs_log_dbg(mask, fmt, params...) do { if (config_enabled(WITH_DEBUG) && ((mask) & cs_dblevel)) cs_log_txt(MODULE_LOG_PREFIX, fmt, ##params); } while(0)


reader-common.c:29:34: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘size_t {aka long unsigned int}’ [-Wformat=]

cs_log_dbg(D_TRACE | D_READER, "check_sct_len(): smartcard section too long %d > %d", len, maxSize - off);


oscam-log.h:20:142: note: in definition of macro ‘cs_log_dbg’

#define cs_log_dbg(mask, fmt, params...) do { if (config_enabled(WITH_DEBUG) && ((mask) & cs_dblevel)) cs_log_txt(MODULE_LOG_PREFIX, fmt, ##params); } while(0)


CC reader-cryptoworks.c
CC reader-dgcrypt.c
CC reader-dre.c
CC reader-dre-cas.c
CC reader-dre-common.c
CC reader-dre-st20.c
CC reader-griffin.c
CC reader-irdeto.c
CC reader-nagra.c
CC reader-seca.c
CC reader-tongfang.c
CC reader-viaccess.c
reader-tongfang.c: In function ‘tongfang_do_ecm’:
reader-tongfang.c:351:82: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘long unsigned int’ [-Wformat=]

rdr_log(reader, "error: check_sct_len failed, smartcard section too long %d > %d", SCT_LEN(er->ecm), sizeof(er->ecm) - 3);


CC reader-videoguard-common.c
CC reader-videoguard1.c
.
.
.

Note: See TracTickets for help on using tickets.