node/deps/cares
Anna Henningsen e76c49de33
deps: cherry-pick 18ea996 from c-ares upstream
Original commit message:

    ares_parse_naptr_reply: make buffer length check more accurate

    9478908a490a6bf009ba58d81de8c1d06d50a117 introduced a length check
    for records parsed by `ares_parse_naptr_reply()`. However, that
    function is designed to parse replies which also contain non-NAPTR
    records; for A records, the `rr_len > 7` check will fail as there
    are only 4 bytes of payload.
    In particular, parsing ANY replies for NAPTR records was broken
    by that patch.

    Fix that by moving the check into the case in which it is already
    known that the record is a NAPTR record.

Ref: 18ea99693d
PR-URL: https://github.com/nodejs/node/pull/13883
Reviewed-By: James M Snell <jasnell@gmail.com>
2017-07-23 16:20:58 +02:00
..
build Add c-ares dependency 2012-08-07 01:49:02 +02:00
config build: Updates to enable AIX support 2015-09-15 13:17:28 -04:00
include deps: back port OpenBSD fix in c-ares/c-ares 2016-10-28 09:14:40 -07:00
src deps: cherry-pick 18ea996 from c-ares upstream 2017-07-23 16:20:58 +02:00
.gitignore deps: upgrade c-ares to piscisaureus/cares@805d153 2013-07-06 22:20:29 +02:00
Makefile deps: upgrade c-ares to 1.10.0 2013-05-14 02:07:35 +02:00
android-configure deps: upgrade c-ares to piscisaureus/cares@805d153 2013-07-06 22:20:29 +02:00
build.mk deps: upgrade c-ares to piscisaureus/cares@805d153 2013-07-06 22:20:29 +02:00
cares.gyp build: fix dependency on missing header file 2016-08-03 11:12:53 +02:00
common.gypi build: Updates to enable AIX support 2015-09-15 13:17:28 -04:00
gyp_cares deps: upgrade c-ares to piscisaureus/cares@805d153 2013-07-06 22:20:29 +02:00