Closed kcgen closed 2 years ago
Same as https://github.com/mackron/dr_libs/issues/219. Nothing to fix here because a chunk size can be anything and there's nothing practical to use as a bound check. If the data is invalid, seeking will fail. Setting to wontfix.
Thanks for the explanation @mackron.
My guess is it wanted a logical bound: a simple example might be that the chunk-size (should) never exceed the WAV file size. None the less, if the seek routine will catch it - then might as well pass it through to try.
I've marked it as a false-positive and won'tfix - thanks for the quick assessment @mackron !
_"An attacker could control the number of times the loop iterates. In
drwav_init__internal
, an unscrutinized value from an untrusted source used as a loop bound (CWE-606)"_