| Summary: | New resampler: ASan reports memcpy-param-overlap error | ||
|---|---|---|---|
| Product: | SDL | Reporter: | Eric Wasylishen <ewasylishen> |
| Component: | audio | Assignee: | Ryan C. Gordon <icculus> |
| Status: | RESOLVED FIXED | QA Contact: | Sam Lantinga <slouken> |
| Severity: | normal | ||
| Priority: | P2 | CC: | sezeroz |
| Version: | HG 2.1 | ||
| Hardware: | x86 | ||
| OS: | Other | ||
|
Description
Eric Wasylishen
2017-09-26 04:46:03 UTC
Changing the SDL_memcpy to a SDL_memmove fixes the ASan warning and seems to work.. If I understand right, the memcpy is copying "output" (which is directly after "input" in a single buffer), over top of "input", which is OK, it just needs to be a memmove instead of memcpy: [ input ] [ output (possibly longer than input) ] --> [ output (possibly longer than input) ] [ unused ] Yeah, you're right, this should be a memmove. Fixed in https://hg.libsdl.org/SDL/rev/f882930f174f, thanks! --ryan. |