]> granicus.if.org Git - procps-ng/commit
proc/slab.c: Initialize struct slab_info in get_slabnode().
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)
commit7382ac88d5ba8e4d904265a0b66badf673223000
tree480d1e42b3c4ee4bd049d000b7f1778c69ba273e
parenta33be338856a436e41f2cbdcfd4b25f09dc18358
proc/slab.c: Initialize struct slab_info in get_slabnode().

Especially its "next" member: this is what caused the crash in "slabtop:
Reset slab_list if get_slabinfo() fails." (if parse_slabinfo*() fails in
sscanf(), for example, then curr is set to NULL but it is already linked
into the "list" and its "next" member was never initialized).
proc/slab.c