fprintf: Avoid null dereference with NULL configsv1.14
commit3ed9a67967cfbdb325bab07d93df2742080df17e
authorTimo Paulssen <timonator@perpetuum-immobile.de>
Sat, 4 May 2019 12:04:46 +0000 (4 14:04 +0200)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 14 May 2019 14:19:00 +0000 (14 11:19 -0300)
tree8c6c6ecb199610221eb7a5afc441bd33caf3f079
parent568dae4bd49874bacc7703f42fc1f20a7fc664e1
fprintf: Avoid null dereference with NULL configs

Adding support for suppress_packed and leaving out bitfield paddings at the end
of classes when no alignment info is available accidentally used conf instead
of cconf, where conf can be NULL, which causes cconf to have the default
fprintf config.

Fixes: 986a3b58a869 ("fprintf: Only add bitfield forced paddings when alignment info available")
Fixes: 9a4d71930467 ("fprintf: Allow suppressing the inferred __attribute__((__packed__))")
Signed-off-by: Timo Paulssen <timonator@perpetuum-immobile.de>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
dwarves_fprintf.c