Commit 088870db authored by Niels Möller's avatar 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
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment