Changes between Initial Version and Version 1 of Ticket #34204


Ignore:
Timestamp:
Dec 9, 2022, 12:03:03 AM (22 months ago)
Author:
Jon Janzen
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #34204 – Description

    initial v1  
    5858(irrelevant information lightly censored)
    5959
     60An easy way to repro is to follow this script:
     61{{{
     62git clone https://github.com/python/cpython.git
     63cd cpython
     64git checkout 3.11 # or whatever version you have that already has django installed
     65./configure --without-doc-strings
     66make -j
     67./python
     68>>> import django.utils.crypto
     69*crash*
     70}}}
     71
    6072Looking 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.
    6173
Back to Top