[PATCH 5.17 150/343] netlabel: fix out-of-bounds memory accesses