Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
18549f33
Commit
18549f33
authored
Aug 22, 2011
by
Andrew Talbot
Committed by
Alexandre Julliard
Aug 23, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
netapi32: Fix to prevent access beyond nul terminator.
parent
4aca7601
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
6 deletions
+10
-6
nbt.c
dlls/netapi32/nbt.c
+10
-6
No files found.
dlls/netapi32/nbt.c
View file @
18549f33
...
...
@@ -1497,13 +1497,17 @@ void NetBTInit(void)
NetBTNameEncode */
char
*
ptr
,
*
lenPtr
;
for
(
ptr
=
gScopeID
+
1
;
ptr
-
gScopeID
<
sizeof
(
gScopeID
)
&&
*
ptr
;
)
for
(
ptr
=
gScopeID
+
1
,
lenPtr
=
gScopeID
;
ptr
-
gScopeID
<
sizeof
(
gScopeID
)
&&
*
ptr
;
++
ptr
)
{
for
(
lenPtr
=
ptr
-
1
,
*
lenPtr
=
0
;
ptr
-
gScopeID
<
sizeof
(
gScopeID
)
&&
*
ptr
&&
*
ptr
!=
'.'
;
ptr
++
)
*
lenPtr
+=
1
;
ptr
++
;
if
(
*
ptr
==
'.'
)
{
lenPtr
=
ptr
;
*
lenPtr
=
0
;
}
else
{
++*
lenPtr
;
}
}
}
if
(
RegQueryValueExW
(
hKey
,
CacheTimeoutW
,
NULL
,
NULL
,
...
...
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