bug-wget
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-wget] fuzz tests


From: Tim Rühsen
Subject: Re: [Bug-wget] fuzz tests
Date: Fri, 22 Feb 2019 15:51:18 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.5.1

Hi Nam,

On 2/21/19 4:31 AM, Nam Nguyen wrote:
> Hi Tim,
> 
> Tim Rühsen <address@hidden> writes:
>> latest git master should have the tests in fuzz/ being fixed. Please
>> give it a try and report back if anything doesn't work on OpenBSD.
> 
> I cherry-picked your upstream changes to patch the latest tarball of
> wget. Unit tests work and fuzz tests work. (I wonder why the unit tests
> did not run previously?)> The only change I had to make was
> `patch-lib_Makefile_am', because otherwise compilation/linking fails due
> to missing symbols in libgnu.a (e.g., from
> unicase/empty-prefix-context.c). What do you think?

Thank you for testing and for your feedback.

lib/ is generated by gnulib-tool (called within ./bootstrap) and
contains gnulib sources. The only OpenBSD (6.4) box I have access to
(part of the gcc compile farm, see https://gcc.gnu.org/wiki/CompileFarm)
has libunistring installed. And thus that is taken instead of the gnulib
unistring fallback. Either you keep the patch, ask on the gnulib mailing
list or you install libunistring.

With Best Regards, Tim

> 
> patch-lib_Makefile_am
> --8<---------------cut here---------------start------------->8---
> $OpenBSD$
> 
> add unknown symbols to libgnu
> 
> Index: lib/Makefile.am
> --- lib/Makefile.am.orig
> +++ lib/Makefile.am
> @@ -3114,17 +3114,13 @@ EXTRA_DIST += unicase/cased.h unicase/caseprop.h unict
>  
>  ## begin gnulib module unicase/empty-prefix-context
>  
> -if LIBUNISTRING_COMPILE_UNICASE_EMPTY_PREFIX_CONTEXT
>  libgnu_a_SOURCES += unicase/empty-prefix-context.c
> -endif
>  
>  ## end   gnulib module unicase/empty-prefix-context
>  
>  ## begin gnulib module unicase/empty-suffix-context
>  
> -if LIBUNISTRING_COMPILE_UNICASE_EMPTY_SUFFIX_CONTEXT
>  libgnu_a_SOURCES += unicase/empty-suffix-context.c
> -endif
>  
>  ## end   gnulib module unicase/empty-suffix-context
>  
> @@ -3447,9 +3443,7 @@ EXTRA_DIST += unistr.in.h
>  
>  ## begin gnulib module unistr/u8-cpy
>  
> -if LIBUNISTRING_COMPILE_UNISTR_U8_CPY
>  libgnu_a_SOURCES += unistr/u8-cpy.c
> -endif
>  
>  EXTRA_DIST += unistr/u-cpy.h
>  
> @@ -3457,9 +3451,7 @@ EXTRA_DIST += unistr/u-cpy.h
>  
>  ## begin gnulib module unistr/u8-mbtouc-unsafe
>  
> -if LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_UNSAFE
>  libgnu_a_SOURCES += unistr/u8-mbtouc-unsafe.c unistr/u8-mbtouc-unsafe-aux.c
> -endif
>  
>  ## end   gnulib module unistr/u8-mbtouc-unsafe
>  
> @@ -3473,9 +3465,7 @@ endif
>  
>  ## begin gnulib module unistr/u8-uctomb
>  
> -if LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB
>  libgnu_a_SOURCES += unistr/u8-uctomb.c unistr/u8-uctomb-aux.c
> -endif
>  
>  ## end   gnulib module unistr/u8-uctomb
> --8<---------------cut here---------------end--------------->8---
> 
>> ASAN / UBSAN builds (or valgrind test runs)
>> The test data comes mainly from OSS-Fuzz and covers all kinds of code
>> paths (though we are far away from 100%).
> 
> This sounds like a really interesting concept to me. I also need to
> learn more about autoconf and Makefiles. Thank you for the clear
> explanations.
> 
> Attaching test logs:
> test.log: output from ports tree `make test'
> wget_css_fuzzer.log: log file found in fuzz/
> 
> Best Regards,
> Nam
> 

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]