Browse Source

[Minor] Add sanity check for base32 decoding

pull/3331/head
Vsevolod Stakhov 6 years ago
parent
commit
f943c72586
  1. 4
      src/libutil/str_util.c

4
src/libutil/str_util.c

@ -845,6 +845,10 @@ rspamd_decode_base32 (const gchar *in, gsize inlen, gsize *outlen,
else {
g_free (res);
if (outlen) {
*outlen = 0;
}
return NULL;
}

Loading…
Cancel
Save