1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-25 06:23:53 +01:00
Sören Tempel 85296ce6cc sock_dns: Fix incorrect buffer bounds check
Apart from advancing the buffer by RR_TYPE_LENGTH, RR_CLASS_LENGTH,
and RR_TTL_LENGTH the code also attempts to read a two byte unsigned
integer using _get_short(bufpos):

	unsigned addrlen = ntohs(_get_short(bufpos));

The bounds check must therefore ensure that the given buffer is large
enough to contain two more bytes after advancing the buffer.
2020-10-30 21:41:39 +01:00
..
2020-10-23 11:27:48 +02:00
2020-10-23 11:27:48 +02:00
2020-09-30 20:00:03 +05:30
2018-03-06 14:00:32 +01:00
2020-10-23 11:27:48 +02:00
2020-09-04 16:29:13 +05:30
2018-06-11 19:12:02 +02:00
2015-08-30 14:00:33 +02:00
2020-09-30 20:00:03 +05:30