projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6b69fe0
)
netfilter: nf_nat_snmp_basic: fix a range check in NAT for SNMP
author
David Howells
<
[email protected]
>
Wed, 9 Jul 2008 22:06:45 +0000
(15:06 -0700)
committer
David S. Miller
<
[email protected]
>
Wed, 9 Jul 2008 22:06:45 +0000
(15:06 -0700)
Fix a range check in netfilter IP NAT for SNMP to always use a big enough size
variable that the compiler won't moan about comparing it to ULONG_MAX/8 on a
64-bit platform.
Signed-off-by: David Howells <
[email protected]
>
Signed-off-by: Patrick McHardy <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
net/ipv4/netfilter/nf_nat_snmp_basic.c
patch
|
blob
|
history
diff --git
a/net/ipv4/netfilter/nf_nat_snmp_basic.c
b/net/ipv4/netfilter/nf_nat_snmp_basic.c
index 7750c97fde7bb6bdc6ae05061b2528d3d3e31310..ffeaffc3fffe6c31c78e858b9a1fa61fe71ba03e 100644
(file)
--- a/
net/ipv4/netfilter/nf_nat_snmp_basic.c
+++ b/
net/ipv4/netfilter/nf_nat_snmp_basic.c
@@
-439,8
+439,8
@@
static unsigned char asn1_oid_decode(struct asn1_ctx *ctx,
unsigned int *len)
{
unsigned long subid;
- unsigned int size;
unsigned long *optr;
+ size_t size;
size = eoc - ctx->pointer + 1;