[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 2/2] ipmi: don't try to open a NULL filename
From: |
Peter Maydell |
Subject: |
Re: [Qemu-devel] [PATCH 2/2] ipmi: don't try to open a NULL filename |
Date: |
Tue, 25 Apr 2017 14:31:51 +0100 |
On 25 April 2017 at 07:51, Cédric Le Goater <address@hidden> wrote:
> Currenlty, the code relies on the fact that open() handles NULL
> filenames but that can cause an error with new clang:
>
> hw/core/loader.c:67:15: runtime error: null pointer passed as argument 1,
> which is declared to never be null
This isn't "new clang", incidentally, it's just clang with the
runtime-static-analysis enabled, which causes warnings to be
printed at runtime for undefined behaviours. You can enable
this by passing configure --extra-cflags=-fsanitize=undefined .
(I have clang 3.8.0 here.)
thanks
-- PMM