Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
L
libzmq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
libzmq
Commits
8d8d32f4
Commit
8d8d32f4
authored
Jun 11, 2016
by
Michael Lutz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Problem: Theoretical overflow when polling more than INT_MAX handles.
Solution: Always use fd_t when accessing the pollset.
parent
7292de8d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
poll.cpp
src/poll.cpp
+4
-4
No files found.
src/poll.cpp
View file @
8d8d32f4
...
...
@@ -94,25 +94,25 @@ void zmq::poll_t::rm_fd (handle_t handle_)
void
zmq
::
poll_t
::
set_pollin
(
handle_t
handle_
)
{
in
t
index
=
fd_table
[
handle_
].
index
;
fd_
t
index
=
fd_table
[
handle_
].
index
;
pollset
[
index
].
events
|=
POLLIN
;
}
void
zmq
::
poll_t
::
reset_pollin
(
handle_t
handle_
)
{
in
t
index
=
fd_table
[
handle_
].
index
;
fd_
t
index
=
fd_table
[
handle_
].
index
;
pollset
[
index
].
events
&=
~
((
short
)
POLLIN
);
}
void
zmq
::
poll_t
::
set_pollout
(
handle_t
handle_
)
{
in
t
index
=
fd_table
[
handle_
].
index
;
fd_
t
index
=
fd_table
[
handle_
].
index
;
pollset
[
index
].
events
|=
POLLOUT
;
}
void
zmq
::
poll_t
::
reset_pollout
(
handle_t
handle_
)
{
in
t
index
=
fd_table
[
handle_
].
index
;
fd_
t
index
=
fd_table
[
handle_
].
index
;
pollset
[
index
].
events
&=
~
((
short
)
POLLOUT
);
}
...
...
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