Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
LSH
lsh
Commits
088870db
Commit
088870db
authored
Jan 08, 1999
by
Niels Möller
Browse files
* sexp_streamed_parser.c (base64_decode): Fixed test for leftover
bits. Rev: src/sexp_streamed_parser.c:1.3
parent
08ce907e
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/sexp_streamed_parser.c
View file @
088870db
...
...
@@ -682,7 +682,7 @@ static int base64_decode(struct base64_state *state, int token)
if
(
token
==
state
->
terminator
)
{
/* Check for unused bits */
if
(
state
->
bits
&&
((
1
<<
state
->
bits
)
&
state
->
buffer
))
if
(
state
->
bits
&&
(
(
(
1
<<
state
->
bits
)
-
1
)
&
state
->
buffer
))
{
werror
(
"sexp: Base64 terminated with %d leftover bits.
\n
"
,
state
->
bits
);
...
...
Write
Preview
Supports
Markdown
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