]> git.ipfire.org Git - thirdparty/systemd.git/commit
shared/dissect-image: make sure that we don't truncate device name
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sun, 27 Jan 2019 08:35:36 +0000 (09:35 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sun, 27 Jan 2019 08:35:36 +0000 (09:35 +0100)
commitcd8c98d7a75435e5b3eebc927560788acef27f60
treebb6a7a57e888e6dc18814624db42578eb79283f1
parent064605ef5646a455a4272850b5f648abb9754a40
shared/dissect-image: make sure that we don't truncate device name

gcc-9 complains that the string may be truncated when written into the output
structure. This shouldn't happen, but if it did, in principle we could remove a
different structure (with a matching name prefix). Let's just refuse the
operation if the name doesn't fit.
src/shared/dissect-image.c