gh-64490: Fix bugs in argument clinic varargs processing by colorfulappl · Pull Request #32092 · python/cpython (original) (raw)
Also, could you please add tests for each case?
Do you mean put the test cases into test_linic.py?
To see if the OOB bug is fixed in commit 6203962 , I should write some code snippet calling function _PyArg_UnpackKeywordsWithVararg
, compile it and ensure that it does not crash.
I'm not sure how can I do this without touching the Python vm or library,
though I have wrote a proof-of-concept by adding a built-in function and test it manually:
https://github.com/colorfulappl/cpython/tree/unpack_keywords_oob_bug_poc .
As for commit 6793f38, I'm looking at test_linic.py and will have a try later.