]> rtime.felk.cvut.cz Git - jailhouse.git/commit
core/tools: Protect result of ARRAY_SIZE
authorJan Kiszka <jan.kiszka@siemens.com>
Thu, 6 Nov 2014 16:00:10 +0000 (17:00 +0100)
committerJan Kiszka <jan.kiszka@siemens.com>
Thu, 6 Nov 2014 16:00:10 +0000 (17:00 +0100)
commitf936fbfeeda67ae7d8f4236566cdd723cb7f0e1c
tree386c9d8193849360be7e90cc4d9f93221bd94506
parent7337f6570d3c8d12bff1870dee7040330c8d6a85
core/tools: Protect result of ARRAY_SIZE

Prevent any operator prioritization issues when embedding ARRAY_SIZE
into an expression by protecting the result with braces. This is a
defensive measure, no current user was affected by it.

Do not convert all the generated or copy&pasted ARRAY_SIZE defines in
the config files as long as they are not affected by the issue.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
hypervisor/include/jailhouse/utils.h
tools/root-cell-config.c.tmpl