Changes between Initial Version and Version 1 of Ticket #34204
- Timestamp:
- Dec 9, 2022, 12:03:03 AM (2 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #34204 – Description
initial v1 58 58 (irrelevant information lightly censored) 59 59 60 An easy way to repro is to follow this script: 61 {{{ 62 git clone https://github.com/python/cpython.git 63 cd cpython 64 git checkout 3.11 # or whatever version you have that already has django installed 65 ./configure --without-doc-strings 66 make -j 67 ./python 68 >>> import django.utils.crypto 69 *crash* 70 }}} 71 60 72 Looking through this stack trace the problem looks to be [https://github.com/django/django/blob/d10c7bfe56f025ccc690721c9f13e7029b777b9c/django/utils/crypto.py#L80-L92 some code] that executes at module import to determine whether or not md5 supports the `usedforsecurity` parameter. 61 73