On Sun,  7 Jan 2018 02:31:49 +0800
Antonio Quartulli <a...@unstable.cc> wrote:

> When the first header field is disabled (i.e. when passing the -t
> option), field_flush() is invoked with the `buffer` global variable
> still zero'd.
> However, in field_flush() we try to access buffer.cur->len
> during variables initialization, thus leading to a SIGSEGV.
> 
> It's interesting to note that this bug appears only when the code
> is compiled with -O0, because the compiler is smart
> enough to immediately jump to the return statement if optimizations
> are enabled and skip the faulty instruction.
> 
> Cc: Stefano Brivio <sbri...@redhat.com>
> Cc: Stephen Hemminger <step...@networkplumber.org>
> Signed-off-by: Antonio Quartulli <a...@unstable.cc>

Both applied, thanks.

Reply via email to