This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author maker
Recipients maker
Date 2012-10-11.19:31:02
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1349983863.01.0.255097510924.issue16201@psf.upfronthosting.co.za>
In-reply-to
Content
Buggy due to the use of scanf at Modueles/socketmodule.c:868
Broken from python2.7 to tip on my machine (GNU/Linux)

>>> import socket
[64481 refs]
>>> socket.gethostbyname('4294967306.4294967296.4294967296.1')
'10.0.0.1'
[67764 refs]
>>> socket.gethostbyname('192.168.1.1  ')
'192.168.1.1'
[67764 refs]
>>> socket.gethostbyname('  192.168.1.1')
'192.168.1.1'
[67764 refs]
>>> socket.gethostbyname('  192.168.1.1  ')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
socket.gaierror: [Errno -2] Name or service not known
[67805 refs]
History
Date User Action Args
2012-10-11 19:31:03makersetrecipients: + maker
2012-10-11 19:31:03makersetmessageid: <1349983863.01.0.255097510924.issue16201@psf.upfronthosting.co.za>
2012-10-11 19:31:02makerlinkissue16201 messages
2012-10-11 19:31:02makercreate