lkml.org 
[lkml]   [2008]   [Aug]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[patch 43/49] netfilter: nf_nat_snmp_basic: fix a range check in NAT for SNMP
    2.6.25-stable review patch.  If anyone has any objections, please let us know.

    ------------------

    From: David Howells <dhowells@redhat.com>

    commit 252815b0cfe711001eff0327872209986b36d490 upstream

    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 <dhowells@redhat.com>
    Signed-off-by: Patrick McHardy <kaber@trash.net>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    Cc: Eugene Teo <eteo@redhat.com>
    Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

    ---
    net/ipv4/netfilter/nf_nat_snmp_basic.c | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    --- a/net/ipv4/netfilter/nf_nat_snmp_basic.c
    +++ b/net/ipv4/netfilter/nf_nat_snmp_basic.c
    @@ -438,8 +438,8 @@ static unsigned char asn1_oid_decode(str
    unsigned int *len)
    {
    unsigned long subid;
    - unsigned int size;
    unsigned long *optr;
    + size_t size;

    size = eoc - ctx->pointer + 1;

    --


    \
     
     \ /
      Last update: 2008-08-18 21:49    [W:2.267 / U:0.060 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site