Skip to content

Comments

[3.14] _struct.c: Fix UB from integer overflow in prepare_s (GH-145158)#145162

Merged
gpshead merged 1 commit intopython:3.14from
miss-islington:backport-fd04005-3.14
Feb 24, 2026
Merged

[3.14] _struct.c: Fix UB from integer overflow in prepare_s (GH-145158)#145162
gpshead merged 1 commit intopython:3.14from
miss-islington:backport-fd04005-3.14

Conversation

@miss-islington
Copy link
Contributor

Avoid possible undefined behaviour from signed overflow in struct module

As discovered via oss-fuzz.
(cherry picked from commit fd04005)

Co-authored-by: Stan Ulbrych 89152624+StanFromIreland@users.noreply.github.com

…5158)

Avoid possible undefined behaviour from signed overflow in `struct` module

As discovered via oss-fuzz.
(cherry picked from commit fd04005)

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
@gpshead gpshead enabled auto-merge (squash) February 24, 2026 00:54
@gpshead gpshead merged commit 35a7a67 into python:3.14 Feb 24, 2026
55 checks passed
@miss-islington miss-islington deleted the backport-fd04005-3.14 branch February 24, 2026 01:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants