ares_parse_naptr_reply: check sufficient data 43/199243/1 tizen_4.0_tv
authorDavid Drysdale <drysdale@google.com>
Mon, 22 May 2017 09:54:10 +0000 (10:54 +0100)
committerJaehyun Kim <jeik01.kim@samsung.com>
Thu, 7 Feb 2019 13:11:32 +0000 (22:11 +0900)
commitbb88e0f7959fb46214ad49e3b70f0812c8770d8f
treec84635821d64e515873df3a955ea457d4d9d58b1
parent99c49e08750dc756c0c9634a6d12e0af81b9881c
ares_parse_naptr_reply: check sufficient data

Check that there is enough data for the required elements
of an NAPTR record (2 int16, 3 bytes for string lengths)
before processing a record.

Bug: https://c-ares.haxx.se/adv_20170620.html
Link: https://c-ares.haxx.se/CVE-2017-1000381.patch
Change-Id: I45f9d4916818b658bcec928f4bee2457ba2124b5
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
ares_parse_naptr_reply.c