Changeset 4556:1bddc91e78d6 in nginx


Ignore:
Timestamp:
03/22/12 11:57:18 (8 years ago)
Author:
Maxim Dounin <mdounin@…>
Branch:
default
Phase:
public
Convert:
svn:c3fe7df1-7212-e011-8a91-001109144009/trunk@4557
Message:

Resolver: added missing sanity checking when creating name queries.

Found by Veracode.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/core/ngx_resolver.c

    r4497 r4556  
    18411841
    18421842        } else {
    1843             if (len == 0) {
     1843            if (len == 0 || len > 255) {
    18441844                return NGX_DECLINED;
    18451845            }
     
    18501850
    18511851        p--;
     1852    }
     1853
     1854    if (len == 0 || len > 255) {
     1855        return NGX_DECLINED;
    18521856    }
    18531857
Note: See TracChangeset for help on using the changeset viewer.