coding: added sanity check on input parameters

Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
8 jobs for tmp-move-to-f28 in 48 minutes and 36 seconds
Status Job ID Name Coverage
  Test
passed #69387941
shared docker
MinGW32

00:05:18

passed #69387939
shared
asan

00:04:29

passed #69387938
shared
clang

00:05:16

passed #69387942
shared
gnutls

00:48:34

passed #69387943
shared
static-analyzers

00:06:54

passed #69387940
shared
ubsan

00:06:46

passed #69387937
shared
x86

00:03:10

passed #69387936
shared
x86-64

00:05:16