[New-bugs-announce] [issue24684] Type confusion in socket module

paul report at bugs.python.org
Wed Jul 22 09:02:52 CEST 2015

New submission from paul:

# (gdb) 
# Program received signal SIGABRT, Aborted.
# 0xb77a6d4c in __kernel_vsyscall ()
# "host" argument can be set to a subclass of unicode with a custom "encode" 
# method. "encode" returns unexpected type. assert is not compiled in release
# mode, so this will lead to a type confusion later on.

files: poc_getaddr.py
messages: 247094
nosy: pkt
priority: normal
severity: normal
status: open
title: Type confusion in socket module
type: crash
versions: Python 3.5
Added file: http://bugs.python.org/file39974/poc_getaddr.py

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list