streams: Fix read-past-the-end and integer overflows

This commit is contained in:
MarcoFalke
2022-01-28 15:29:44 +01:00
parent 5e8e0b3d7f
commit fab02f7991
2 changed files with 12 additions and 14 deletions

View File

@@ -6,6 +6,7 @@
#define BITCOIN_UTIL_OVERFLOW_H
#include <limits>
#include <optional>
#include <type_traits>
template <class T>