From 5b6ab39c6d2f4fb4d1c63e2fcb42c87016e30bd6 Mon Sep 17 00:00:00 2001 From: Qualys Security Advisory Date: Thu, 1 Jan 1970 00:00:00 +0000 Subject: [PATCH] proc/slab.c: Check correct number of items after sscanf(). --- proc/slab.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proc/slab.c b/proc/slab.c index 49177416..4bafad01 100644 --- a/proc/slab.c +++ b/proc/slab.c @@ -242,7 +242,7 @@ static int parse_slabinfo11(struct slab_info **list, struct slab_stat *stats, &curr->nr_active_slabs, &curr->nr_slabs, &curr->pages_per_slab); - if (assigned < 6) { + if (assigned < 7) { fprintf(stderr, "unrecognizable data in your slabinfo version 1.1\n\r"); if(slab_badname_detect(buffer)) fprintf(stderr, "Found an error in cache name at line %s\n", buffer);