[LTP] [PATCH 3/4] Test for uname26 exploit CVE-2012-0957
Cyril Hrubis
chrubis@suse.cz
Mon Mar 27 17:46:09 CEST 2017
Hi!
> +static int check_field(char *bytes, size_t length, char *field)
> +{
> + size_t i = strlen(bytes) + 1;
> +
> + for (; i < length; i++) {
> + if (bytes[i]) {
> + tst_res(TFAIL, "Bytes leaked in %s!", field);
> + return 1;
> + }
> + }
> + return 0;
> +}
I guess that this could be void, since we don't use the return value,
but that is very minor...
--
Cyril Hrubis
chrubis@suse.cz
More information about the ltp
mailing list