mirror of
https://git.h3cjp.net/H3cJP/citra.git
synced 2024-11-24 14:32:47 +00:00
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:
parent
2868d4ba84
commit
7b39215c8a
|
@ -61,7 +61,7 @@ template <typename ContiguousContainer>
|
|||
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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue