mackron / dr_libs

Audio decoding libraries for C/C++, each in a single source file.
Other
1.24k stars 205 forks source link

dr_wav (0.13.3): Coverity flagged Division or modulo by zero (CWE-369) #217

Closed kcgen closed 2 years ago

kcgen commented 2 years ago

"The program will have undefined behavior, likely a crash. In drwav_init__internal: Division or modulo by zero results in undefined behavior. (CWE-369)"

2021-11-28_06-44

kcgen commented 2 years ago

That's everything detected in 0.13.3; fortunately all look like illegal/rare corner cases or due to bad input data.

mackron commented 2 years ago

Fixed in dev branch. If needed, continue discussion in https://github.com/mackron/dr_libs/issues/215.

kcgen commented 2 years ago

Confirmed fixed!