]> git.ipfire.org Git - thirdparty/systemd.git/commit
veritysetup: fix memory corruption
authorLennart Poettering <lennart@poettering.net>
Fri, 1 Apr 2022 15:01:29 +0000 (17:01 +0200)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 1 Apr 2022 17:22:39 +0000 (02:22 +0900)
commitbd4dea76de6355778079ba4945846324cef2a043
tree736100db3104c7f08a8344fa0e5f7586f4d7e125
parent95cd21928fae6e1806176cd56853cc1e490607ff
veritysetup: fix memory corruption

We must copy the option string, since in one case we are called with a
pointer into dynamic memory that will be freed by the caller.

As discussed here: https://github.com/systemd/systemd/pull/22908/files#r839394490

Follow-up for: #22908
src/veritysetup/veritysetup.c