Commit 5da8b391 authored by Nils Goroll's avatar Nils Goroll

check result of decode_base64

parent c7db4acf
......@@ -388,6 +388,7 @@ sub load_classifier_db($$) {
die 'error reading '.$fname.' '.$! if (! defined($res));
die 'only read '.$res.' bytes of '.$sz if ($res < $sz);
$crypt_data = decode_base64($b64);
die 'no data after base64 decode' unless (defined($crypt_data) && (length($crypt_data)) > 0)
}
close($fh);
......
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