Skip to content

Commit

Permalink
lsblk: fix heap-use-after-free
Browse files Browse the repository at this point in the history
Addresses: #787
Signed-off-by: Karel Zak <kzak@redhat.com>
  • Loading branch information
karelzak committed May 6, 2019
1 parent 281a2f3 commit f6f8a67
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions misc-utils/lsblk.c
Original file line number Diff line number Diff line change
Expand Up @@ -1560,6 +1560,7 @@ static int process_all_devices(struct lsblk_devtree *tr)
if (is_maj_excluded(dev->maj) || !is_maj_included(dev->maj)) {
DBG(DEV, ul_debug(" %s: ignore (by filter)", d->d_name));
lsblk_devtree_remove_device(tr, dev);
dev = NULL;
goto next;
}

Expand Down

0 comments on commit f6f8a67

Please sign in to comment.