| Summary: | Heap buffer overflow in ConvertSint24ToSint32 | ||
|---|---|---|---|
| Product: | SDL | Reporter: | Geeknik Labs <geeknik> |
| Component: | audio | Assignee: | Simon Hug <chli.hug> |
| Status: | RESOLVED FIXED | QA Contact: | Sam Lantinga <slouken> |
| Severity: | critical | ||
| Priority: | P2 | ||
| Version: | 2.0.9 | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Attachments: | POC | ||
|
Description
Geeknik Labs
2019-02-16 04:43:19 UTC
Simon, can you verify that your changes fix this issue? The WAVE file (attachment 3628 [details]) specifies a 1 byte block size for 24-bit PCM. data chunk is 5 bytes long.
With the current tip, SDL_LoadWAV_RW rejects this file with "Unsupported block alignment" as it expects a multiple of 3 for the block size (bits-per-samples * channels / 8).
Great, thanks! |