Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nx-libs
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
dimbor
nx-libs
Commits
03a2922d
Commit
03a2922d
authored
Feb 16, 2015
by
Mihai Moldovan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "dix: integer overflow in GetHosts() [CVE-2014-8092 2/4]"
This reverts commit
d4c76981
.
parent
31322c2b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
6 deletions
+0
-6
access.c
nx-X11/programs/Xserver/os/access.c
+0
-6
No files found.
nx-X11/programs/Xserver/os/access.c
View file @
03a2922d
...
...
@@ -1719,10 +1719,6 @@ GetHosts (
{
nHosts
++
;
n
+=
(((
host
->
len
+
3
)
>>
2
)
<<
2
)
+
sizeof
(
xHostEntry
);
/* Could check for INT_MAX, but in reality having more than 1mb of
hostnames in the access list is ridiculous */
if
(
n
>=
1048576
)
break
;
}
if
(
n
)
{
...
...
@@ -1734,8 +1730,6 @@ GetHosts (
for
(
host
=
validhosts
;
host
;
host
=
host
->
next
)
{
len
=
host
->
len
;
if
((
ptr
+
sizeof
(
xHostEntry
)
+
len
)
>
(
data
+
n
))
break
;
((
xHostEntry
*
)
ptr
)
->
family
=
host
->
family
;
((
xHostEntry
*
)
ptr
)
->
length
=
len
;
ptr
+=
sizeof
(
xHostEntry
);
...
...
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