diff options
| author | 2021-08-04 22:16:29 -0400 | |
|---|---|---|
| committer | 2021-08-04 22:16:29 -0400 | |
| commit | 7b39215c8a0842fff38f8edb2b8ee67038eb96c5 (patch) | |
| tree | d262849f58174f2d3a23546f2f51feb8e5bc3566 | |
| parent | nvdec: Implement VA-API hardware video acceleration (#6713) (diff) | |
| download | yuzu-7b39215c8a0842fff38f8edb2b8ee67038eb96c5.tar.gz yuzu-7b39215c8a0842fff38f8edb2b8ee67038eb96c5.tar.xz yuzu-7b39215c8a0842fff38f8edb2b8ee67038eb96c5.zip | |
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.
Diffstat (limited to '')
| -rw-r--r-- | src/common/hex_util.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/hex_util.h b/src/common/hex_util.h index f5f9e4507..5e9b6ef8b 100644 --- a/src/common/hex_util.h +++ b/src/common/hex_util.h | |||
| @@ -61,7 +61,7 @@ template <typename ContiguousContainer> | |||
| 61 | return out; | 61 | return out; |
| 62 | } | 62 | } |
| 63 | 63 | ||
| 64 | [[nodiscard]] constexpr std::array<u8, 16> AsArray(const char (&data)[17]) { | 64 | [[nodiscard]] constexpr std::array<u8, 16> AsArray(const char (&data)[33]) { |
| 65 | return HexStringToArray<16>(data); | 65 | return HexStringToArray<16>(data); |
| 66 | } | 66 | } |
| 67 | 67 | ||