namespaces: Out-of-bounds array access

From: Richard Weinberger
Date: Thu Jan 05 2012 - 19:19:02 EST


Hi!

While searching a completely different bug I've found this problem:
If CONFIG_NET_NS, CONFIG_UTS_NS and CONFIG_IPC_NS are disabled, ns_entries[]
becomes empty and things like ns_entries[ARRAY_SIZE(ns_entries) - 1] will explode.

Thanks,
//richard




Attachment: signature.asc
Description: OpenPGP digital signature