Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
f543aea5
Commit
f543aea5
authored
May 26, 2006
by
Kai Blin
Committed by
Alexandre Julliard
May 27, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
secur32: Fix wrong bit shift in the base64 encoder.
Thanks to Juan Lang for catching this one.
parent
63307241
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
base64_codec.c
dlls/secur32/base64_codec.c
+1
-1
No files found.
dlls/secur32/base64_codec.c
View file @
f543aea5
...
...
@@ -72,7 +72,7 @@ SECURITY_STATUS encodeBase64(PBYTE in_buf, int in_len, char* out_buf,
out_buf
[
i
+
1
]
=
b64
[
((
d
[
0
]
<<
4
)
&
0x30
)
|
(
d
[
1
]
>>
4
&
0x0f
)];
/* third char is the last 4 bits of the second byte padded with
* two zeroes */
out_buf
[
i
+
2
]
=
b64
[
((
d
[
1
]
>>
4
)
&
0x3c
)
];
out_buf
[
i
+
2
]
=
b64
[
((
d
[
1
]
<<
2
)
&
0x3c
)
];
/* fourth char is a = to indicate one byte of padding */
out_buf
[
i
+
3
]
=
'='
;
out_buf
[
i
+
4
]
=
0
;
...
...
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