[New-bugs-announce] [issue2413] os.strerror does not check for out of range argument
Alexander Belopolsky
report at bugs.python.org
Wed Mar 19 02:24:55 CET 2008
New submission from Alexander Belopolsky <belopolsky at users.sourceforge.net>:
ISO/ANSI C strerror indicates out of range error by setting errno, but
existing code incorrectly checks for NULL return value. Attached patch
(tested n Mac OS X) makes os.strerror raise ValueError for out of range
argument.
----------
files: posix-strerror.diff
keywords: patch
messages: 64023
nosy: belopolsky
severity: normal
status: open
title: os.strerror does not check for out of range argument
type: behavior
versions: Python 2.5, Python 2.6, Python 3.0
Added file: http://bugs.python.org/file9754/posix-strerror.diff
__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue2413>
__________________________________
More information about the New-bugs-announce
mailing list