Fix possible out of bounds read on host audio 2 meters

Signed-off-by: falkTX <falktx@falktx.com>
This commit is contained in:
falkTX 2022-11-26 01:23:56 +00:00
parent cd99938fa8
commit a182b1216e
No known key found for this signature in database
GPG key ID: CDBAA37ABC74FBA0

View file

@ -70,7 +70,7 @@ float d_findMaxNormalizedFloat128(const float floats[128])
if (!std::isfinite(floats[i]))
__builtin_unreachable();
tmp = std::abs(*floats++);
tmp = std::abs(floats[i]);
if (tmp > maxf2)
maxf2 = tmp;