[Skiboot] skiboot + AFL fuzz test for 'libstb' unit tests
Nageswara R Sastry
rnsastry at linux.vnet.ibm.com
Wed Oct 26 19:49:22 AEDT 2016
On 2016-10-26 13:35, Stewart Smith wrote:
> Nageswara R Sastry <rnsastry at linux.vnet.ibm.com> writes:
>> On 2016-10-26 12:48, Stewart Smith wrote:
>> When I tried with HOSTCC seeing the following
>> $ make check HOSTCC=$HOME/afl/afl-clang-fast
>> [ HOSTCC ] ccan/check_type/test/run.c
>> afl-clang-fast 2.35b by <lszekeres at google.com>
>> error: unknown warning option '-Wjump-misses-init'
>> [-Werror,-Wunknown-warning-option]
>> error: unknown warning option '-Wsuggest-attribute=const'
>> [-Werror,-Wunknown-warning-option]
>> error: unknown warning option '-Wsuggest-attribute=noreturn'
>> [-Werror,-Wunknown-warning-option]
>> error: unknown warning option '-Wstack-usage=1024'; did you mean
>> '-Wtype-safety'? [-Werror,-Wunknown-warning-option]
>> skiboot/ccan/Makefile.check:28: recipe for target
>> 'ccan/check_type/test/run' failed
>> make: *** [ccan/check_type/test/run] Error 1
>>
>> seems afl-clang is not understanding gcc related compile options.
>
> Ahh yep.. hrm... maybe the try-cflag macro is buggy (see
> Makefile.main).
>
> Perhaps just try changing "HOSTCC=gcc" to "HOSTCC=afl-clang-fast" in
> Makefile.main ?
Changed HOSTCC to afl-clang-fast in Makefile.main and the result is same
as above.
And
Tried with removing '-Werror' but it struck at
core/test/run-mem_region_reservations.c
...
In file included from core/test/run-mem_region_reservations.c:54:
core/test/../../libc/string/strdup.c:16:7: error: expected identifier or
'('
char *strdup(const char *src)
^
/usr/include/x86_64-linux-gnu/bits/string2.h:1291:22: note: expanded
from macro 'strdup'
# define strdup(s) __strdup (s)
^
/usr/include/x86_64-linux-gnu/bits/string2.h:1280:4: note: expanded from
macro '__strdup'
(__extension__ (__builtin_constant_p (s) && __string2_1bptr_p (s)
\
^
In file included from core/test/run-mem_region_reservations.c:54:
core/test/../../libc/string/strdup.c:16:7: error: expected ')'
/usr/include/x86_64-linux-gnu/bits/string2.h:1291:22: note: expanded
from macro 'strdup'
# define strdup(s) __strdup (s)
^
...
--
Regards,
R.Nageswara Sastry
More information about the Skiboot
mailing list