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-11 11:00:49 +10:00
2020-08-18 11:04:05 +02:00
2020-07-24 04:15:56 +00:00
2020-08-11 11:00:49 +10:00
2020-07-21 08:44:26 +02:00
2020-08-06 09:10:06 +02:00
2020-07-21 08:44:26 +02:00
2020-07-31 10:15:44 +10:00
2020-05-25 16:09:57 -07:00
2020-07-31 10:15:44 +10:00
2020-05-25 16:09:57 -07:00
2020-07-21 08:44:26 +02:00
2020-05-25 16:09:57 -07:00
2020-07-21 08:44:26 +02:00
2020-03-09 16:19:22 +01:00
2020-06-23 20:20:39 +10:00
2020-03-17 09:11:13 +01:00
2020-08-07 11:26:09 +02:00
2020-04-21 14:19:48 +02:00
2020-03-09 16:19:22 +01:00
2020-03-09 16:19:22 +01:00
2020-05-25 16:09:57 -07:00
2020-04-21 14:19:48 +02:00
2020-04-21 14:19:48 +02:00
2020-08-13 23:06:55 +10:00
2020-04-21 14:19:48 +02:00
2020-05-28 08:07:57 +02:00
2020-07-14 08:55:13 +10:00
2020-03-17 09:11:13 +01:00
2020-03-05 17:20:16 -08:00
2020-08-07 11:26:09 +02:00
2020-03-09 16:19:22 +01:00
2020-08-07 11:26:09 +02:00
2020-06-11 16:02:09 +10:00
2020-05-25 16:09:57 -07:00
2020-05-07 11:44:48 -03:00
2020-06-05 13:19:49 +02:00
2020-06-04 16:00:33 +02:00
2020-05-25 16:09:57 -07:00
2020-08-25 14:10:05 +00:00
2020-07-21 08:44:26 +02:00
2020-08-11 11:00:49 +10:00
2020-03-09 16:19:22 +01:00
2020-04-20 11:40:41 +02:00
2020-05-01 10:36:45 +02:00
2020-05-01 14:11:08 +02:00
2020-05-01 10:36:45 +02:00
2020-04-20 08:59:09 +00:00
2020-04-21 14:19:48 +02:00
2020-04-21 14:19:48 +02:00
2020-04-30 18:40:45 +02:00
2020-08-05 15:51:29 +02:00
2020-08-10 12:08:09 +02:00
2020-08-04 10:50:31 +02:00
2020-03-09 16:19:22 +01:00
2020-08-25 16:02:55 +02:00
2020-03-05 17:20:16 -08:00
2020-08-05 15:43:52 +02:00
2020-06-04 16:00:33 +02:00
2020-07-31 10:15:44 +10:00
2020-07-21 08:44:26 +02:00
2020-07-21 08:44:26 +02:00
2020-07-31 10:15:44 +10:00
2020-04-21 14:19:48 +02:00
2020-05-13 15:35:28 +10:00
2020-04-03 09:27:15 +02:00
2020-05-25 16:09:57 -07:00
2020-03-09 16:19:22 +01:00
2020-07-31 10:15:44 +10:00
2020-06-25 12:04:36 +10:00
2020-06-25 13:43:45 +02:00
2020-08-11 11:00:49 +10:00
2020-06-04 16:10:41 +02:00
2020-08-11 00:10:10 +00:00
2020-06-11 16:02:09 +10:00
2020-07-31 10:15:44 +10:00