Skip to content

testcapimodule uses wrong format chars for datetime tests #95878

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
tiran opened this issue Aug 11, 2022 · 1 comment
Closed

testcapimodule uses wrong format chars for datetime tests #95878

tiran opened this issue Aug 11, 2022 · 1 comment
Labels
3.11 only security fixes 3.12 only security fixes 3.13 bugs and security fixes tests Tests in the Lib/test dir type-bug An unexpected behavior, bug, or error

Comments

@tiran
Copy link
Member

tiran commented Aug 11, 2022

Bug report

_testcapimodule.c has a similar bug as #95876. It uses l (long) format char for ints. This works ok on most platforms but causes memory corruption on WASM64.

@tiran tiran added type-bug An unexpected behavior, bug, or error 3.11 only security fixes 3.12 only security fixes labels Aug 11, 2022
tiran added a commit to tiran/cpython that referenced this issue Aug 11, 2022
miss-islington pushed a commit to miss-islington/cpython that referenced this issue Aug 11, 2022
(cherry picked from commit 8b34e91)

Co-authored-by: Christian Heimes <christian@python.org>
miss-islington pushed a commit to miss-islington/cpython that referenced this issue Aug 11, 2022
(cherry picked from commit 8b34e91)

Co-authored-by: Christian Heimes <christian@python.org>
pablogsal pushed a commit that referenced this issue Aug 11, 2022
(cherry picked from commit 8b34e91)

Co-authored-by: Christian Heimes <christian@python.org>

Co-authored-by: Christian Heimes <christian@python.org>
miss-islington added a commit that referenced this issue Aug 11, 2022
(cherry picked from commit 8b34e91)

Co-authored-by: Christian Heimes <christian@python.org>
@iritkatriel iritkatriel added the tests Tests in the Lib/test dir label Nov 25, 2023
@erlend-aasland erlend-aasland added the 3.13 bugs and security fixes label Jan 4, 2024
@erlend-aasland
Copy link
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3.11 only security fixes 3.12 only security fixes 3.13 bugs and security fixes tests Tests in the Lib/test dir type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

No branches or pull requests

3 participants