[issue24684] socket.getaddrinfo(host) doesn't ensure that host.encode() returns a byte string

Chris Angelico report at bugs.python.org
Fri Sep 11 11:30:14 CEST 2015


Chris Angelico added the comment:

ISTM this is a case where Python's core shouldn't be using assert. It's possible for userland code to trigger an assertion failure, which means it should be a regular if(..) raise. Patch attached.

@haypo, what do you mean by "fuzzing"? Is there something I've missed here?

----------
keywords: +patch
nosy: +Rosuav
Added file: http://bugs.python.org/file40434/dont_assert.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue24684>
_______________________________________


More information about the Python-bugs-list mailing list