]> granicus.if.org Git - procps-ng/commitdiff
proc/slab.c: Check correct number of items after sscanf().
authorQualys Security Advisory <qsa@qualys.com>
Thu, 1 Jan 1970 00:00:00 +0000 (00:00 +0000)
committerCraig Small <csmall@enc.com.au>
Fri, 18 May 2018 21:32:21 +0000 (07:32 +1000)
proc/slab.c

index 491774163da3bf096957004d647d00f650743c26..4bafad011bdc4106d9125552317f36686f3ef708 100644 (file)
@@ -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);