~robin_jadoul/blog

bb806ec499804f67122e81163a0b91eb6e6b3aee — Robin Jadoul 9 months ago 33750fb
Add link to GH-115322
1 files changed, 2 insertions(+), 1 deletions(-)

M posts/2024-02-11-dicectf-quals-diligent-auditor.md
M posts/2024-02-11-dicectf-quals-diligent-auditor.md => posts/2024-02-11-dicectf-quals-diligent-auditor.md +2 -1
@@ 146,7 146,8 @@ And now for something completely different: back to our scheduled unintended sol
[^audit-hook-missing]: To be honest, this approach seems like a python issue to me,
    as both the construction of `memmove.__class__` should probably trigger a `ctypes.cdata` event,
    and calling it should absolutely trigger a `ctypes.call_function`.
    I am considering making an issue and/or a patch to cpython for this.
    I am considering making an issue and/or a patch to cpython for this.\
    **UPDATE** Here it is [GH-115322](https://github.com/python/cpython/issues/115322), with my apologies to future pyjail constructors :)
[^ctypes-hooks]: Importing anything will of course trigger several hooks, but ctypes in particular will also construct the `ctypes.pythonapi` object at import time, which requires a `ctypes.dlopen`.

## import {mod}