Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

selectmodule.c calls PyInt_AsLong without error checking #42547

Closed
luked mannequin opened this issue Nov 3, 2005 · 2 comments
Closed

selectmodule.c calls PyInt_AsLong without error checking #42547

luked mannequin opened this issue Nov 3, 2005 · 2 comments
Labels
stdlib Python modules in the Lib dir

Comments

@luked
Copy link
Mannequin

luked mannequin commented Nov 3, 2005

BPO 1346533

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = None
closed_at = <Date 2005-11-03.05:11:46.000>
created_at = <Date 2005-11-03.01:54:05.000>
labels = ['library']
title = 'selectmodule.c calls PyInt_AsLong without error checking'
updated_at = <Date 2005-11-03.05:11:46.000>
user = 'https://bugs.python.org/luked'

bugs.python.org fields:

activity = <Date 2005-11-03.05:11:46.000>
actor = 'nnorwitz'
assignee = 'nnorwitz'
closed = True
closed_date = None
closer = None
components = ['Library (Lib)']
creation = <Date 2005-11-03.01:54:05.000>
creator = 'luked'
dependencies = []
files = []
hgrepos = []
issue_num = 1346533
keywords = []
message_count = 2.0
messages = ['26790', '26791']
nosy_count = 2.0
nosy_names = ['nnorwitz', 'luked']
pr_nums = []
priority = 'normal'
resolution = 'fixed'
stage = None
status = 'closed'
superseder = None
type = None
url = 'https://bugs.python.org/issue1346533'
versions = ['Python 2.4']

@luked
Copy link
Mannequin Author

luked mannequin commented Nov 3, 2005

selectmodule.c calls PyInt_AsLong without checking
whether the conversion produced an error.
This bug can cause an error to be reported at the wrong
point, eg:

Python 2.4.2 (#1, Nov  3 2005, 12:41:57)
[GCC 3.4.3-20050110 (Gentoo Linux 3.4.3.20050110,
ssp-3.4.3.20050110-0, pie-8.7 on linux2
Type "help", "copyright", "credits" or "license" for
more information.
>>> import select
>>> p = select.poll()
>>> p.register(0) # stdin
>>> p.poll(0x100000000)
[(0, 4)]
>>> 2 + 3
OverflowError: long int too large to convert to int
>>>

@luked luked mannequin closed this as completed Nov 3, 2005
@luked luked mannequin assigned nnorwitz Nov 3, 2005
@luked luked mannequin added the stdlib Python modules in the Lib dir label Nov 3, 2005
@luked luked mannequin closed this as completed Nov 3, 2005
@luked luked mannequin assigned nnorwitz Nov 3, 2005
@luked luked mannequin added the stdlib Python modules in the Lib dir label Nov 3, 2005
@nnorwitz
Copy link
Mannequin

nnorwitz mannequin commented Nov 3, 2005

Logged In: YES
user_id=33168

Thanks!

Committed revision 41388, 41389. (head)
Committed revision 41390. (2.4)

@ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stdlib Python modules in the Lib dir
Projects
None yet
Development

No branches or pull requests

0 participants