gh-46376: add (failing) tests for ctypes/pointer/cast/set_contents#108519
gh-46376: add (failing) tests for ctypes/pointer/cast/set_contents#108519code-of-kpp wants to merge 1 commit into
Conversation
|
The previous fix was only reverted for 3.11 so we could release 3.11.5. The rest isn't in such a hurry so I hope we can fix it forward instead. |
Sorry, something went wrong.
2a2cf53 to
9a6b23a
Compare
August 26, 2023 17:52
|
I'm planning to fix it yes, but I'd like the tests to be merged first, if you agree that it's reasonable |
Sorry, something went wrong.
5cf867d to
a84b664
Compare
August 26, 2023 19:18
|
There are too many moving parts:
The biggest bug right now seems to be that Another shortcut, would be to take my original idea, look into |
Sorry, something went wrong.
3e346a8 to
5dbb4ae
Compare
August 27, 2023 22:51
d44a269 to
b6e92ba
Compare
September 7, 2023 00:16
Previous attempt to fix pythongh-46376 was incomplete and overall it didn't succeed, and was reverted in 3.11. However, we have discovered some dangerous issues with ctypes, that aren't fixed or documented anywhere. This commit adds tests (@expectedfailure) so at least developers are aware of situations where memory might be corrupted, leaked or when changing a pointer value might have no effect. Hopefully, we should be able to remove @expectedfailure in the future, with new shiny ctypes implementation or at least a bugfix.
b6e92ba to
0116633
Compare
July 13, 2024 13:14
|
Hi, Would you mind adding only the tests that succeed? There's quite a few of those here. |
Sorry, something went wrong.
|
This PR is stale because it has been open for 30 days with no activity. |
Sorry, something went wrong.
Previous attempt to fix gh-46376 was incomplete and overall it didn't succeed, and was reverted. However, we have discovered some dangerous issues with ctypes, that aren't fixed or documented anywhere.
This commit adds tests (@expectedfailure) so at least developers are aware of situations where memory might be corrupted, leaked or when changing a pointer value might have no effect.
Hopefully, we should be able to remove @expectedfailure in the future, with new shiny ctypes implementation or at least a bugfix.
/cc @ambv