| Summary: | [patch] Loading GIFs on multiple threads returns garbage output and crashes | ||
|---|---|---|---|
| Product: | SDL_image | Reporter: | David Lönnhager <dv.lnh.d> |
| Component: | misc | Assignee: | Sam Lantinga <slouken> |
| Status: | RESOLVED FIXED | QA Contact: | Sam Lantinga <slouken> |
| Severity: | normal | ||
| Priority: | P2 | CC: | gapkalov |
| Version: | 2.0.4 | ||
| Hardware: | x86_64 | ||
| OS: | Windows 10 | ||
| Attachments: |
Load GIFs on multiple threads
fix access violation |
||
|
Description
David Lönnhager
2019-01-10 22:22:56 UTC
Fixed, thanks! https://hg.libsdl.org/SDL_image/rev/07fe7a23da89 Hello, I have a crash with this changes. Crash happens in:
state->buf[0] = state->buf[state->last_byte - 2]; // access violation becasu in last_byte - trash
state->buf[1] = state->buf[state->last_byte - 1];
if ((count = GetDataBlock(src, &state->buf[2], state)) <= 0)
state->done = TRUE;
state->last_byte = 2 + count; // last_byte initialization
Created attachment 3829 [details]
fix access violation
patch to fix access violation
Patch added, thanks! https://hg.libsdl.org/SDL_image/rev/02e1f7b5746c |