]> granicus.if.org Git - shadow/commit
get_map_ranges: check for overflow
authorSerge Hallyn <serge@hallyn.com>
Sun, 31 Jul 2016 17:55:44 +0000 (12:55 -0500)
committerSerge Hallyn <serge@hallyn.com>
Sun, 31 Jul 2016 17:56:48 +0000 (12:56 -0500)
commit7f5a14817d304c4f9ac0aff864f27d95a8cc75ca
tree85acb82ce72d1206cc7dd635bb6f243577e331fd
parent9bf01bf01092336ea8cf2aee4aae626abf174117
get_map_ranges: check for overflow

The kernel accepts u32 values, so make sure that userspace
is not passing large values.

Signed-off-by: Serge Hallyn <serge@hallyn.com>
libmisc/idmapping.c