forked from ShuriZma/suyu
1
0
Fork 0

hex_util: Fix incorrect array size in AsArray

Although this isn't used, this is a potential bug as HexStringToArray will perform an out-of-bounds read.
This commit is contained in:
Morph 2021-08-04 22:16:29 -04:00
parent 2868d4ba84
commit 7b39215c8a
1 changed files with 1 additions and 1 deletions

View File

@ -61,7 +61,7 @@ template <typename ContiguousContainer>
return out; return out;
} }
[[nodiscard]] constexpr std::array<u8, 16> AsArray(const char (&data)[17]) { [[nodiscard]] constexpr std::array<u8, 16> AsArray(const char (&data)[33]) {
return HexStringToArray<16>(data); return HexStringToArray<16>(data);
} }