Browse Source

[Minor] Add sanity check for base32 decoding

tags/2.6
Vsevolod Stakhov 4 years ago
parent
commit
f943c72586
1 changed files with 4 additions and 0 deletions
  1. 4
    0
      src/libutil/str_util.c

+ 4
- 0
src/libutil/str_util.c View File

@@ -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