We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 82829d8 commit 415f657Copy full SHA for 415f657
1 file changed
Misc/NEWS.d/next/Library/2025-06-20-16-28-47.gh-issue-135759.jne0Zi.rst
@@ -1,2 +1,4 @@
1
-:mod:`hashlib`: correctly reject negative digest lengths in SHAKE objects.
+:mod:`hashlib`: reject negative digest lengths in OpenSSL-based SHAKE objects
2
+by raising a :exc:`ValueError`. Previously, negative lengths were implicitly
3
+rejected by raising a :exc:`MemoryError` or a :exc:`SystemError`.
4
Patch by Bénédikt Tran.
0 commit comments