chiark / gitweb /
mount: check for NULL before reading pm->what
authorDave Reisner <dreisner@archlinux.org>
Fri, 4 Oct 2013 22:22:40 +0000 (18:22 -0400)
committerDave Reisner <dreisner@archlinux.org>
Fri, 4 Oct 2013 22:23:53 +0000 (18:23 -0400)
commit9c03872bc8fb2a381eafe7301ef9811b641686dd
treed14c9ea55e3448888b58e353f4ff8d26a8fb16d3
parent660ea9620f7b8f99d08a2770d4e81acfd8aea02e
mount: check for NULL before reading pm->what

Since a57f7e2c828b85, a mount unit with garbage in it would cause
systemd to crash on loading it.

ref: https://bugs.freedesktop.org/show_bug.cgi?id=70148
src/core/mount.c