Re: [PATCH 0/2] topic: meson: add more compiler hardening flags

2023-10-09 Thread Daniel P . Berrangé
On Mon, Oct 09, 2023 at 09:21:01AM +0200, Thomas Huth wrote: > On 05/10/2023 19.38, Daniel P. Berrangé wrote: > ... > > > > I also tested enabling -ftrapv, to change signed integer > > overflow from wrapping, to trapping instead. This exposed a > > bug in the string-input-visitor which overflows w

Re: [PATCH 0/2] topic: meson: add more compiler hardening flags

2023-10-09 Thread Thomas Huth
On 05/10/2023 19.38, Daniel P. Berrangé wrote: ... I also tested enabling -ftrapv, to change signed integer overflow from wrapping, to trapping instead. This exposed a bug in the string-input-visitor which overflows when parsing ranges, and exposed the test-int128 code as (harmlessly) overflowin

[PATCH 0/2] topic: meson: add more compiler hardening flags

2023-10-05 Thread Daniel P . Berrangé
This brings more compiler hardening flags to the default QEMU build process. The proposed flags have already been adopted by default in the kernel build process. At some point it is hoped that distros might enable them globally, as they've done in the past with things like _FORTIFY_SOURCE. Meanwhil