]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: dns: overflowed dns name start position causing invalid dns error
authorNikhil Agrawal <nikhil.agrwal@flipkart.com>
Thu, 20 Dec 2018 05:20:59 +0000 (10:50 +0530)
committerWilly Tarreau <w@1wt.eu>
Fri, 21 Dec 2018 10:36:44 +0000 (11:36 +0100)
commit2fa66c3b9348d179e478d3d584471ee8989c3f6e
treeb5a1ee81a6ac223a6a4ea1cf759baabebe269037
parent8d4e7dc880d2094658fead50dedd9c22c95c556a
BUG/MEDIUM: dns: overflowed dns name start position causing invalid dns error

In dns_read_name() when dns name is used with compression and start position of
name is greater than 255 name read is incorrect and causes invalid dns error.
eg: 0xc11b c specifies name compression being used. 11b represent the start
position of name but currently we are using only 1b for start position.

This should be backported as far as 1.7.
src/dns.c