[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH 0/5] Xen: Remove the of variable length arrays
Variable length arrays, while convenient in some cases, are problematic with small stacks, and can turn logical bugs into stack overflows. Furthermore, the code generation behind them is very poor. Xen has two uses of VLAs which can be fixed easily, and one case where the VLA logic triggers on a type, which can be worked around. Andrew Cooper (5): x86/PoD: Simplify handling of the quick check x86/PoD: Avoid using variable length arrays in p2m_pod_zero_check() x86/hvm: Adjust hvmemul_rep_stos() to compile with -Wvla ARM/dom0: Avoid using a variable length array in make_memory_node() xen: Disallow variable length arrays xen/Rules.mk | 1 + xen/arch/arm/domain_build.c | 4 +++- xen/arch/x86/hvm/emulate.c | 6 +++--- xen/arch/x86/mm/p2m-pod.c | 26 ++++++++++---------------- 4 files changed, 17 insertions(+), 20 deletions(-) -- 2.1.4 _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxxx https://lists.xenproject.org/mailman/listinfo/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |