]> rtime.felk.cvut.cz Git - jailhouse.git/commit
driver: Improve input validation to make code scanners happier
authorJan Kiszka <jan.kiszka@siemens.com>
Tue, 10 Mar 2015 06:27:43 +0000 (07:27 +0100)
committerJan Kiszka <jan.kiszka@siemens.com>
Fri, 20 Mar 2015 06:10:39 +0000 (07:10 +0100)
commit899c16c26d104943ff72ab4dbf069fea9699ebe3
treecc123737ae5d243d128c9e97cdbc7023541599d2
parentf25792d958741bad87e433c425008cde96763d65
driver: Improve input validation to make code scanners happier

We trust the configuration files passed down to the driver already
because they define the isolation set up by the hypervisor and can
therefore screw up the system in various ways.

Nevertheless, we can and should improve basic consistency checks of
config fields that influences allocations and copy operations. This will
detect some corruptions/inconsistencies earlier and also satisfies the
Coverity scanner.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
driver/cell.c
driver/main.c
driver/pci.c