Skip to content

gh-62764: Fix integer overflow in socketmodule.#12864

Closed
mmaker wants to merge 4 commits into
python:mainfrom
mmaker:master
Closed

gh-62764: Fix integer overflow in socketmodule.#12864
mmaker wants to merge 4 commits into
python:mainfrom
mmaker:master

Conversation

@mmaker

@mmaker mmaker commented Apr 17, 2019

Copy link
Copy Markdown
Contributor

This migrates issue18564.3.patch from https://bugs.python.org/issue18564
into a git commit, as requested by Cheryl Sabella.

https://bugs.python.org/issue18564

This migrates issue18564.3.patch from https://bugs.python.org/issue18564
into a git commit, as requested by Cheryl Sabella.
@the-knights-who-say-ni

Copy link
Copy Markdown

Hello, and thanks for your contribution!

I'm a bot set up to make sure that the project can legally accept your contribution by verifying you have signed the PSF contributor agreement (CLA).

Unfortunately we couldn't find an account corresponding to your GitHub username on bugs.python.org (b.p.o) to verify you have signed the CLA (this might be simply due to a missing "GitHub Name" entry in your b.p.o account settings). This is necessary for legal reasons before we can look at your contribution. Please follow the steps outlined in the CPython devguide to rectify this issue.

You can check yourself to see if the CLA has been received.

Thanks again for your contribution, we look forward to reviewing it!

Comment thread Lib/test/test_socket.py
msg = '"{addr} is not a valid address.'.format(addr=addr)
with self.assertRaisesRegex(OSError, 'bad bluetooth address', msg=msg) as cm:
self.bs.connect((addr, 1))
self.assertIsNone(cm.exception.errno, msg)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't we check that that errno is some expected value? EINVAL? Also, why are you passing in msg here?

@arhadthedev arhadthedev changed the title bpo-18564: Fix integer overflow in socketmodule. gh-62764: Fix integer overflow in socketmodule. May 6, 2023
@arhadthedev arhadthedev added the extension-modules C modules in the Modules dir label May 6, 2023
@mmaker mmaker mannequin mentioned this pull request Apr 10, 2022
@serhiy-storchaka

Copy link
Copy Markdown
Member

There is no integer overflow here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting review extension-modules C modules in the Modules dir

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants