Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
b09f25e9
Commit
b09f25e9
authored
Aug 24, 2011
by
Charles-François Natali
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue12810: Remove check for negative unsigned value in socketmodule.c. Patch
by Joel Stanley.
parent
e049f470
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
Misc/ACKS
Misc/ACKS
+1
-0
Modules/socketmodule.c
Modules/socketmodule.c
+1
-1
No files found.
Misc/ACKS
View file @
b09f25e9
...
@@ -898,6 +898,7 @@ Nathan Srebro
...
@@ -898,6 +898,7 @@ Nathan Srebro
RajGopal Srinivasan
RajGopal Srinivasan
Quentin Stafford-Fraser
Quentin Stafford-Fraser
Frank Stajano
Frank Stajano
Joel Stanley
Oliver Steele
Oliver Steele
Greg Stein
Greg Stein
Chris Stern
Chris Stern
...
...
Modules/socketmodule.c
View file @
b09f25e9
...
@@ -1749,7 +1749,7 @@ cmsg_min_space(struct msghdr *msg, struct cmsghdr *cmsgh, size_t space)
...
@@ -1749,7 +1749,7 @@ cmsg_min_space(struct msghdr *msg, struct cmsghdr *cmsgh, size_t space)
static
const
size_t
cmsg_len_end
=
(
offsetof
(
struct
cmsghdr
,
cmsg_len
)
+
static
const
size_t
cmsg_len_end
=
(
offsetof
(
struct
cmsghdr
,
cmsg_len
)
+
sizeof
(
cmsgh
->
cmsg_len
));
sizeof
(
cmsgh
->
cmsg_len
));
if
(
cmsgh
==
NULL
||
msg
->
msg_control
==
NULL
||
msg
->
msg_controllen
<
0
)
if
(
cmsgh
==
NULL
||
msg
->
msg_control
==
NULL
)
return
0
;
return
0
;
if
(
space
<
cmsg_len_end
)
if
(
space
<
cmsg_len_end
)
space
=
cmsg_len_end
;
space
=
cmsg_len_end
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment