proc/slab.c: Check correct number of items after sscanf().

This commit is contained in:
Qualys Security Advisory 1970-01-01 00:00:00 +00:00 committed by Craig Small
parent 3ccc6ed262
commit 5b6ab39c6d

View 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);