🐍 Python 3.11.1 Fixes A Lot Of Bugs
The work on the new Python release is ongoing. Python 3.10.8 came with some interesting changes, as well as 3.11.0. Today we will take a look at Python 3.11.1 that was released on 6th December 2022. I will tell you about the three most interesting fixes in this release:
Prevent Forged DNS hostname DOS
One of the most interesting fixes in this release revolves around quadratic algorithm in IDNA used on DNS hostnames. The issue was brought up by Guido Vranken as illustrated above.
He discovered that Python limits the IDNA length too late, causing an exponential processing time increase. Increase, that could be used by bad actors, to DOS a Python service.
Better Except Error Line Indication
Thanks to Bryan不可思议, we know that in an illustrated example the line of code is indicated incorrectly. This, and similar use cases were also fixed in Python 3.11.1.