Files
bind9/lib
Mark Andrews a347641782 Cast the original rcode to (dns_ttl_t) when setting extended rcode
Shifting (signed) integer left could trigger undefined behaviour when
the shifted value would overflow into the sign bit (e.g. 2048).

The issue was found when using AFL++ and UBSAN:

    message.c:2274:33: runtime error: left shift of 2048 by 20 places cannot be represented in type 'int'
    SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior message.c:2274:33 in
2020-08-25 14:10:05 +00:00
..
2020-08-06 09:10:06 +02:00
2020-06-18 10:03:05 +02:00
2020-08-06 09:10:06 +02:00
2020-08-20 12:05:01 -07:00
2020-08-06 09:10:06 +02:00
2020-05-21 12:13:01 +02:00