Matt Morehouse
ee501b035b
bolt11: avoid reading uninitialized memory
...
If both databits and *data_len are 0, pull_uint return uninitialized
stack memory in *val.
Detected by valgrind and UBSan.
valgrind:
==173904== Use of uninitialised value of size 8
==173904== __sanitizer_cov_trace_cmp8
==173904== decode_c (bolt11.c:292)
==173904== bolt11_decode_nosig (bolt11.c:877)
UBSan:
common/bolt11.c:79:29: runtime error: shift exponent 64 is too large for 64-bit type 'uint64_t' (aka 'unsigned long')
Corpus input e6f7b9744a7d79b2aa4f7c477707bdd3483f40fa triggers the UBSan
report, but we didn't previously realize this because UBSan has been
disabled in the CI run. We rename the input to indicate its usefulness
as a permanent regression test.
2023-10-18 09:53:22 +10:30
..
2023-10-18 09:53:22 +10:30
2023-04-09 12:41:27 +09:30
2023-06-22 13:40:45 +09:30
2023-04-05 06:12:24 +09:30
2023-04-05 06:12:24 +09:30
2023-04-05 06:12:24 +09:30
2023-05-27 15:06:31 +09:30
2023-04-05 06:12:24 +09:30
2023-05-21 12:46:27 +02:00
2023-10-12 19:28:28 +02:00
2023-04-05 06:12:24 +09:30
2023-04-05 06:12:24 +09:30
2023-06-22 13:40:45 +09:30
2023-06-22 13:40:45 +09:30
2023-06-22 13:40:45 +09:30
2023-06-23 13:12:42 +09:30
2023-04-05 06:12:24 +09:30
2023-04-05 06:12:24 +09:30
2023-04-05 06:12:24 +09:30
2023-07-10 14:56:50 +09:30
2023-07-10 14:56:50 +09:30
2023-09-18 13:58:45 +09:30
2023-09-18 13:58:45 +09:30
2023-09-18 13:58:45 +09:30
2023-09-18 13:58:45 +09:30
2023-09-18 13:58:45 +09:30
2023-09-18 13:58:45 +09:30
2023-09-18 13:58:45 +09:30
2023-09-18 13:58:45 +09:30
2023-09-18 13:58:45 +09:30
2023-09-18 13:58:45 +09:30
2023-09-18 13:58:45 +09:30
2023-09-18 13:58:45 +09:30
2023-09-18 13:58:45 +09:30
2023-09-18 13:58:45 +09:30
2023-09-18 13:58:45 +09:30
2023-09-18 13:58:45 +09:30
2023-09-18 13:58:45 +09:30
2023-09-18 13:58:45 +09:30
2023-09-18 13:58:45 +09:30
2023-09-18 13:58:45 +09:30
2023-09-18 13:58:45 +09:30
2023-09-18 13:58:45 +09:30
2023-09-18 13:58:45 +09:30
2023-09-18 13:58:45 +09:30
2023-09-18 13:58:45 +09:30
2023-09-18 13:58:45 +09:30
2023-09-18 13:58:45 +09:30
2023-09-18 13:58:45 +09:30
2023-09-18 13:58:45 +09:30
2023-09-18 13:58:45 +09:30
2023-09-18 13:58:45 +09:30
2023-09-18 13:58:45 +09:30
2023-09-18 13:58:45 +09:30
2023-09-18 13:58:45 +09:30
2023-09-18 13:58:45 +09:30
2023-09-18 13:58:45 +09:30
2023-09-18 13:58:45 +09:30
2023-09-18 13:58:45 +09:30
2023-09-18 13:58:45 +09:30
2023-09-18 13:58:45 +09:30
2023-09-18 13:58:45 +09:30
2023-09-18 13:58:45 +09:30
2023-09-18 13:58:45 +09:30
2023-09-18 13:58:45 +09:30
2023-09-18 13:58:45 +09:30
2023-09-18 13:58:45 +09:30
2023-09-18 13:58:45 +09:30
2023-09-18 13:58:45 +09:30
2023-04-05 06:12:24 +09:30
2023-10-12 19:28:28 +02:00
2023-04-09 12:41:27 +09:30
2023-09-18 13:58:45 +09:30