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
f53b2588
Commit
f53b2588
authored
Jun 26, 2016
by
Thomas Faber
Committed by
Alexandre Julliard
Jul 05, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
netapi32: Avoid buffer overrun in NetBTNameEncode.
Signed-off-by:
Thomas Faber
<
thomas.faber@reactos.org
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
28851700
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
nbt.c
dlls/netapi32/nbt.c
+1
-1
No files found.
dlls/netapi32/nbt.c
View file @
f53b2588
...
...
@@ -171,7 +171,7 @@ static int NetBTNameEncode(const UCHAR *p, UCHAR *buffer)
if
(
!
buffer
)
return
0
;
buffer
[
len
++
]
=
NCBNAMSZ
*
2
;
for
(
i
=
0
;
p
[
i
]
&&
i
<
NCBNAMSZ
;
i
++
)
for
(
i
=
0
;
i
<
NCBNAMSZ
&&
p
[
i
]
;
i
++
)
{
buffer
[
len
++
]
=
((
p
[
i
]
&
0xf0
)
>>
4
)
+
'A'
;
buffer
[
len
++
]
=
(
p
[
i
]
&
0x0f
)
+
'A'
;
...
...
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