-
Notifications
You must be signed in to change notification settings - Fork 99
Closed
Description
Hi,
I am a high school student just starting to learn about testing techniques. I found a bug in the latest version (3.3) of idna while doing some fuzzing using the fuzzing tool Atheris. The reproducing process is shown below:
Import idna
idna.encode(b'\x0a'+b'\x33'+b'\x81')
Is raising UnicodeDecodeError
with a traceback:
Detatails
Traceback (most recent call last):
File "fuzzer_Idna.py", line 8, in TestOneInput
idna.encode(data)
File "/home/clou5/.local/lib/python3.8/site-packages/idna/core.py", line 342, in encode
s = s.decode('ascii')
UnicodeDecodeError: 'ascii' codec can't decode byte 0x83 in position 0: ordinal not in range(128)
My environment
Python 3.8.10 (default, Nov 26 2021, 20:14:08)
[GCC 9.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import idna
>>> print(idna.__version__)
3.3
>>>
There is a similar case previously fixed: #108
Metadata
Metadata
Assignees
Labels
No labels