Comments (5)
from cpython.
Checked in verbatim.
from cpython.
Accepted and assigned back to Trent.
I'm starting to hate Win64 <wink>.
from cpython.
I confirm that, to the best of my knowledge and belief, this
contribution is free of any claims of third parties under
copyright, patent or other rights or interests ("claims"). To
the extent that I have any such claims, I hereby grant to CNRI a
nonexclusive, irrevocable, royalty-free, worldwide license to
reproduce, distribute, perform and/or display publicly, prepare
derivative versions, and otherwise use this contribution as part
of the Python software and its related documentation, or any
derivative versions thereof, at no cost to CNRI or its licensed
users, and to authorize others to do so.
I acknowledge that CNRI may, at its sole discretion, decide
whether or not to incorporate this contribution in the Python
software and its related documentation. I further grant CNRI
permission to use my name and other identifying information
provided to CNRI by me for use in connection with the Python
software and its related documentation.
from cpython.
This patch fixes possible overflows in the socket module for 64-bit platforms
(mainly Win64). The changes are:
- abstract the socket type to SOCKET_T (this is SOCKET on Windows, int on
Un*x), this is necessary because sizeof(SOCKET) > sizeof(int) on Win64 - use INVALID_SOCKET on Win32/64 for an error return value for accept()
- ensure no overflow of the socket variable for: (1) a PyObject return value
(use PyLong_FromLongLong if necessary); and (2) printf formatting in repr()
from cpython.
Related Issues (20)
- Don't call `lookdict_index` in `delitemif_lock_held` HOT 2
- QueueListener never starts when configuring logging using dictConfig.
- zippapp/ macOS: .DS_Store files should be excluded from the generated archives HOT 6
- itertools.starmap can fail to construct a proper iterator HOT 10
- argparse: fix inconsistency in `add_argument()` API when using positional argument with `dest=` parameter
- I've made a simple patch.
- Regression in tricky __dict__ use. HOT 5
- Stalling of Multiprocessing.Pool HOT 2
- Shlex docs: improper syntax highlighting in code snippet HOT 1
- Builtin function for `ntpath.lexists` HOT 1
- readline module fails to build against recent libedit HOT 5
- TypeError in bisect when called with key argument HOT 4
- email.message: header value parser get_msg_id throws IndexError on some invalid RFC822 Message-ID HOT 4
- asyncgen.athrow() checks args on asyncgen.athrow().send() but should check them on asyncgen.athrow() HOT 1
- 递归错误 HOT 2
- Make `posix.getcwd()` as fast as `nt.getcwd()` HOT 4
- unittest.mock.patch('path') neither forwards or backwards compatible starting from Python >= v3.11 HOT 13
- Random exception of the Python interpreter in a free-threaded build. HOT 6
- Inspect module is prohibitively expensive to import HOT 8
- Automate positional arguments in clinic code HOT 14
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cpython.