Commit Graph

16 Commits

Author SHA1 Message Date
df
de3042f808 PTR shouldn't normally have the shorter host TTL. 2020-07-25 23:59:33 +01:00
df
3a24c51c56 Correct IP address type in API; clean up scopes, loops. 2020-07-25 19:44:53 +01:00
df
ed03a6098d Initial working responder version reabsorbing TizenRT changes.
Consequently:
- fixes #9 Arbitrary memory read while parsing malicious mDNS queries (mdns.c);
- fixes #10 Denial of Service vulnerability (infinite loop) while parsing malicious mDNS queries (mdns.c);
- fixes #11 Heap-based buffer overread (off-by-one) (mdns.c);
- fixes #12 Heap-based buffer overread while parsing mDNS RR section (off-by-one) (mdns.c).
2020-07-23 12:02:06 +01:00
Darell Tan
a155bbd914 Added checks for NULL after uncompressing labels. 2018-01-16 22:55:15 +08:00
Darell Tan
9f70ccd676 Ensure NULL terminator is not written past end of allocated buffer. 2017-11-13 23:57:18 +08:00
Darell Tan
db4e276662 Ensure sufficient buffer size when converting nlabels to string. 2017-11-05 00:02:07 +08:00
John Maguire
3aedea8798 Win32/MinGW support. 2013-01-17 16:24:10 +01:00
A Weinlein
501803d9d3 Added support to parse and encode AAAA RRs 2012-12-21 18:02:11 +01:00
Darell Tan
e0bf7227b1 Bugfix: read/write 16 and 32-bit values manually to avoid alignment issues. 2012-12-11 23:38:08 +08:00
Darell Tan
f1f39e0caa Made packet parsing code more robust. 2012-11-27 23:58:33 +08:00
Darell Tan
c821cdcbe4 Added more debugging statements. 2012-10-17 21:31:36 +08:00
Darell Tan
c4993739f5 Bugfix: when matching RR entries, sometimes the name and type are not sufficiently unique.
- Added rr_entry_match() to search for an exact RR entry. For most RRs,
  matching its name is sufficient but for PTRs, its target needs to be
  matched as well.

- Rewrote populate_answers() logic to make sure all matching RRs (by
  name and type) are added.

- When responding, populate our answers first, then check them against
  the Known-Answer list.
2012-10-15 22:47:15 +08:00
Darell Tan
4e19b7120e Bugfix: rr_entry_find() only matched the entry type but not its name. 2012-10-13 01:00:28 +08:00
Darell Tan
6965f201c9 Bugfix: PTR records shouldn't have the cache flush bit set. 2012-10-11 23:39:03 +08:00
Darell Tan
3148bb394d Changed licensing terms to the "modified" BSD license. 2012-03-26 23:03:55 +08:00
Darell Tan
0051057605 Initial commit. 2011-04-10 21:51:52 +08:00