8000 bpo-38748: gh-82929: Add test for stack corruption. by michaelDCurran · Pull Request #26204 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

bpo-38748: gh-82929: Add test for stack corruption. #26204

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

Merged
merged 7 commits into from
Sep 26, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Ctypes callback test for 38748: no longer mark as expected failure as…
… the underlying issue in libffi has been addressed in libffi-3.4.3.
  • Loading branch information
michaelDCurran committed Sep 24, 2022
commit 3f2fc412d0ad0db041ae548ba93ecaa79aed9644
4 changes: 0 additions & 4 deletions Lib/test/test_ctypes/test_callbacks.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,10 +163,6 @@ def callback(a, b):
# With no fix for i38748, the next line will raise OSError and cause the test to fail.
self.assertEqual(dll._test_i38748_runCallback(callback, 5, 10), 15)

# This test is expected to fail on 32-bit (x86) because it uses stdcall
# convention, while 64-bit will ignore that and use a safe stack layout.
if (sys.maxsize + 1) == 2**31: # 32 bit
test_i38748_stackCorruption = unittest.expectedFailure(test_i38748_stackCorruption)

@need_symbol('WINFUNCTYPE')
class StdcallCallbacks(Callbacks):
Expand Down
0