You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Triage rationale: Posibil overflow în dimensiunea copiei YUV; verificați limitele și accesul la memorie, fără vulnerabilitate confirmată.
This is an attributed tracking copy, not a locally reproduced or confirmed Graphix defect. Applicability, affected versions and ownership still require validation. No automatic synchronization or resolution is implied. Original descriptions and comments are preserved literally in Markdown code blocks to avoid notifying mentioned users or resolving SDL references against Graphix. Attachments, logs, patches and other linked resources remain at their original URLs; external resource contents and edit/event histories are not copied.
Graphix validation checklist
Read the current upstream issue and discussion.
Establish affected versions/platforms and whether Graphix is affected.
Reproduce the reported behavior and identify the invariant owner.
Implement an ownership-correct fix or document an upstream/external resolution.
Verify regression coverage and applicable platform/runtime gates.
Original description
Casting to `size_t` in [this piece](https://github.com/libsdl-org/SDL/blob/6a381567b0412603054e3ecd77916085edffe94a/src/render/SDL_yuv_sw.c#L124) makes little sense as the expression being cast may (theoretically) overflow.
The safer code may be:
```cSDL_memcpy(swdata->pixels, pixels,
(size_t)swdata->h * (size_t)swdata->w + 2 * (size_t)((swdata->h + 1) / 2) * (size_t)((swdata->w + 1) / 2));
```Taking into account that these are texture dimensions, as I may understand, the overflow seems unlikely to happen.
Tracking upstream SDL issue libsdl-org#8281
This is an attributed tracking copy, not a locally reproduced or confirmed Graphix defect. Applicability, affected versions and ownership still require validation. No automatic synchronization or resolution is implied. Original descriptions and comments are preserved literally in Markdown code blocks to avoid notifying mentioned users or resolving SDL references against Graphix. Attachments, logs, patches and other linked resources remain at their original URLs; external resource contents and edit/event histories are not copied.
Graphix validation checklist
Original description
Original discussion (chronological)
Original comment by slouken
Source: libsdl-org#8281 (comment)
Created: 2023-09-25T16:08:31.0000000Z; updated: 2023-09-25T16:08:31.0000000Z; association: COLLABORATOR
Original comment by slouken
Source: libsdl-org#8281 (comment)
Created: 2024-10-06T17:36:56.0000000Z; updated: 2024-10-06T17:36:56.0000000Z; association: COLLABORATOR