| Summary: | [Patch] Check src alignment for S32_to_F32 conversions | ||
|---|---|---|---|
| Product: | SDL | Reporter: | Ethan Lee <flibitijibibo> |
| Component: | audio | Assignee: | Ryan C. Gordon <icculus> |
| Status: | RESOLVED FIXED | QA Contact: | Sam Lantinga <slouken> |
| Severity: | major | ||
| Priority: | P2 | Keywords: | target-2.0.10 |
| Version: | HG 2.0 | ||
| Hardware: | All | ||
| OS: | All | ||
| Attachments: | Patch to fix crashes on unaligned src pointer | ||
Because the src/dst are the same in this particular context I'd also be up for this simply being commented out since it's effectively a guaranteed check, but when reusing this in FAudio it did surprise us a little... This patch is now https://hg.libsdl.org/SDL/rev/cfcd6e8aee7f, thanks! --ryan. |
Created attachment 3825 [details] Patch to fix crashes on unaligned src pointer Attached is a patch that fixes a crash when src is not aligned for SSE2/NEON conversions of int32 PCM to float32 PCM. If the conversion is not done in-place and src/dst are not of the same alignment, the core loop will crash on attempting to load the src pointer.