mirror of
https://github.com/NLnetLabs/unbound.git
synced 2026-01-31 10:49:27 -05:00
- Fix for integer overflow when printing RDF_TYPE_TIME.
This commit is contained in:
parent
f37242566b
commit
8af3d73b9b
2 changed files with 4 additions and 1 deletions
|
|
@ -1,3 +1,6 @@
|
|||
21 May 2020: George
|
||||
- Fix for integer overflow when printing RDF_TYPE_TIME.
|
||||
|
||||
19 May 2020: Wouter
|
||||
- CVE-2020-12662 Unbound can be tricked into amplifying an incoming
|
||||
query into a large number of queries directed to a target.
|
||||
|
|
|
|||
|
|
@ -167,7 +167,7 @@ sldns_gmtime64_r(int64_t clock, struct tm *result)
|
|||
static int64_t
|
||||
sldns_serial_arithmetics_time(int32_t time, time_t now)
|
||||
{
|
||||
int32_t offset = time - (int32_t) now;
|
||||
int32_t offset = (int32_t)((uint32_t) time - (uint32_t) now);
|
||||
return (int64_t) now + offset;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue