Re: [PATCH] Add missing initialization for g_autofree variables

2021-03-12 Thread Philippe Mathieu-Daudé
On 3/12/21 1:03 PM, mreza...@redhat.com wrote: > From: Miroslav Rezanina > > When declaring g_autofree variable without inicialization, compiler > will raise "may be used uninitialized in this function" warning due > to automatic free handling. This usage can cause gfree using unknown. > Such beh

[PATCH] Add missing initialization for g_autofree variables

2021-03-12 Thread mrezanin
From: Miroslav Rezanina When declaring g_autofree variable without inicialization, compiler will raise "may be used uninitialized in this function" warning due to automatic free handling. This usage can cause gfree using unknown. Such behavior can be dangerous and exploitable. Add inicialization