diff options
author | MarcoFalke <falke.marco@gmail.com> | 2022-01-28 15:29:44 +0100 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2022-02-09 17:20:22 +0100 |
commit | fab02f799194c75af7def3a2ab45c443b75de230 (patch) | |
tree | 95fa221d48e3e8b917f14a8c09732724bb9b5941 /src/util | |
parent | 5e8e0b3d7f6055e326bda61e60712b530e8920f0 (diff) | |
download | bitcoin-fab02f799194c75af7def3a2ab45c443b75de230.tar.xz |
streams: Fix read-past-the-end and integer overflows
Diffstat (limited to 'src/util')
-rw-r--r-- | src/util/overflow.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/util/overflow.h b/src/util/overflow.h index 5982af8d04..c70a8b663e 100644 --- a/src/util/overflow.h +++ b/src/util/overflow.h @@ -6,6 +6,7 @@ #define BITCOIN_UTIL_OVERFLOW_H #include <limits> +#include <optional> #include <type_traits> template <class T> |