mirror of
https://github.com/NLnetLabs/unbound.git
synced 2025-12-20 23:00:56 -05:00
- Fix Out-of-Bounds Read in dname_valid(),
reported by X41 D-Sec.
This commit is contained in:
parent
7646c96259
commit
72d348de6a
2 changed files with 4 additions and 0 deletions
|
|
@ -10,6 +10,8 @@
|
|||
reported by X41 D-Sec.
|
||||
- Fix Randomness Error not Handled Properly,
|
||||
reported by X41 D-Sec.
|
||||
- Fix Out-of-Bounds Read in dname_valid(),
|
||||
reported by X41 D-Sec.
|
||||
|
||||
19 November 2019: Wouter
|
||||
- Fix CVE-2019-18934, shell execution in ipsecmod.
|
||||
|
|
|
|||
|
|
@ -75,6 +75,8 @@ dname_valid(uint8_t* dname, size_t maxlen)
|
|||
{
|
||||
size_t len = 0;
|
||||
size_t labellen;
|
||||
if(maxlen == 0)
|
||||
return 0; /* too short, shortest is '0' root label */
|
||||
labellen = *dname++;
|
||||
while(labellen) {
|
||||
if(labellen&0xc0)
|
||||
|
|
|
|||
Loading…
Reference in a new issue