]> git.ipfire.org Git - thirdparty/systemd.git/commit
core/load-fragment: fix (potential) bad memory access
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 19 Nov 2012 15:36:38 +0000 (16:36 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 19 Nov 2012 16:13:37 +0000 (17:13 +0100)
commitac97e2c559f5d386a332aba4a24bf9930cdb1c51
tree9341e3b927a6fec99e3f29aa6cfbdb544e83fec6
parentc040936be2a4c77e9465cffae47d77d5ec14fb49
core/load-fragment: fix (potential) bad memory access

strncmp() could be used with size bigger then the size of the string,
because MAX was used instead of MIN.

If failing, print just the offending mount flag.
src/core/load-fragment.c