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

Integer Overflow On print() #71738

Closed
pabstersac mannequin opened this issue Jul 18, 2016 · 2 comments
Closed

Integer Overflow On print() #71738

pabstersac mannequin opened this issue Jul 18, 2016 · 2 comments

Comments

@pabstersac
Copy link
Mannequin

pabstersac mannequin commented Jul 18, 2016

BPO 27551
Nosy @serhiy-storchaka

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 2016-07-18.06:29:18.470>
created_at = <Date 2016-07-18.05:56:39.184>
labels = ['invalid']
title = 'Integer Overflow On print()'
updated_at = <Date 2016-07-18.06:29:18.468>
user = 'https://bugs.python.org/pabstersac'

bugs.python.org fields:

activity = <Date 2016-07-18.06:29:18.468>
actor = 'serhiy.storchaka'
assignee = 'none'
closed = True
closed_date = <Date 2016-07-18.06:29:18.470>
closer = 'serhiy.storchaka'
components = []
creation = <Date 2016-07-18.05:56:39.184>
creator = 'pabstersac'
dependencies = []
files = []
hgrepos = []
issue_num = 27551
keywords = []
message_count = 2.0
messages = ['270705', '270720']
nosy_count = 2.0
nosy_names = ['serhiy.storchaka', 'pabstersac']
pr_nums = []
priority = 'normal'
resolution = 'not a bug'
stage = 'resolved'
status = 'closed'
superseder = None
type = None
url = 'https://bugs.python.org/issue27551'
versions = ['Python 3.5', 'Python 3.6']

@pabstersac
Copy link
Mannequin Author

pabstersac mannequin commented Jul 18, 2016

There is an integer overflow because python doesn't check the length correctly on print() statements:
print(0xFFFFFFFFFFFFFFF**10000000000**80000000000000000)
That will overflow and python would stop working, so it would be as good as crashed :)
Hope it helps ;)

@serhiy-storchaka
Copy link
Member

See msg270712.

@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
None yet
Projects
None yet
Development

No branches or pull requests

1 participant