[libvirt PATCH 0/3] Reduce stack frame size of virNWFilterRuleDefFixup

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



When libvirt is build with sanitizers enabled, in debug mode, on clang,
virNWFilterRuleDefFixup exceeds the maximum stack frame size of 8192 bytes,
as specified in meson.build:

  ../src/conf/nwfilter_conf.c:2190:1: error: stack frame size of 10616
  bytes in function 'virNWFilterRuleDefFixup' [-Werror,-Wframe-larger-than=]
  virNWFilterRuleDefFixup(virNWFilterRuleDef *rule)
  ^
  1 error generated.

This series reworks the function a bit to bring the frame size below 8192.

Regards,
Tim

Tim Wiederhake (3):
  virNWFilterRuleDefFixup: Factor out ethHdr as variable
  virNWFilterRuleDefFixup: Factor out ipHdr as variable
  virNWFilterRuleDefFixup: Factor out portData as variable

 src/conf/nwfilter_conf.c | 179 ++++++++++++++++-----------------------
 1 file changed, 73 insertions(+), 106 deletions(-)

-- 
2.31.1





[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux