netfilter: nf_conntrack_h323: remove unreliable debug code in decode_octstr
Subsystems (2)
Florian Westphal
maintainerPATCH 1/1 netfilter: nf_conntrack_h323: remove unreliable debug code in decode_octstr
The debug code (not enabled in any build) reads up to 6 octets of the inpt buffer, but does so without bound checks. Zap this.
Signed-off-by Florian Westphal <[email protected]>
--- net/netfilter/nf_conntrack_h323_asn1.c | 7 ------- 1 file changed, 7 deletions(-)
net/netfilter/nf_conntrack_h323_asn1.c +0 -7
@@ -21,7 +21,6 @@#if H323_TRACE #define TAB_SIZE 4 -#define IFTHEN (cond, act) if(cond){act;}#ifdef __KERNEL__#define #else
@@ -29,7 +28,6 @@#endif #define FNAME (name) name,#else -#define IFTHEN (cond, act) #define PRINT(fmt, args...)#define FNAME (name)#endif
@@ -443,11 +441,6 @@ static int decode_octstr(struct bitstr *bs, const struct field_t *f,BYTE_ALIGN (bs);if (base && (f->attr &DECODE )) {/* The IP Address */ -IFTHEN (f->lb ==4 , -" = %d.%d.%d.%d:%d" , - bs->cur[0 ], bs->cur[1 ], - bs->cur[2 ], bs->cur[3 ], - bs->cur[4 ] *256 + bs->cur[5 ])); *((unsigned int *)(base + f->offset)) = bs->cur - bs->buf; }
Signature · 1 line
2.52.0