[LTP] [PATCH v2 3/3] cve/cve-2018-1000001: Add Realpath Buffer Underflow test
Cyril Hrubis
chrubis@suse.cz
Thu Jun 21 16:12:12 CEST 2018
Hi!
> > I doubt that we need the cast to char* here.
>
> We do:
> getcwd05.c: In function ???run???:
> ../../../../include/tst_test.h:53:40: warning: format ???%s??? expects argument of type ???char *???, but argument 5 has type ???void *??? [-Wformat=]
> tst_res_(__FILE__, __LINE__, (ttype), (arg_fmt), ##__VA_ARGS__)
>
> So is something wrong in my TESTPTR() implementation?
Ah, okay my bad, so gcc is strict here (which makes sense).
--
Cyril Hrubis
chrubis@suse.cz
More information about the ltp
mailing list