]> git.ipfire.org Git - thirdparty/systemd.git/commit
chase-symlinks: avoid using stack allocation for potentially huge paths
authorLennart Poettering <lennart@poettering.net>
Tue, 12 Apr 2022 13:41:48 +0000 (15:41 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 12 Apr 2022 15:07:49 +0000 (17:07 +0200)
commit7b9be862c708249a534b56dba4703f4c808d82fa
treeeb01e1a2bffa8ac826b3e28103b7b691ea3ee2e2
parent8f47f880a44be97635ac085d67ac33e217c1607d
chase-symlinks: avoid using stack allocation for potentially huge paths

let's better be safe and use heap allocation for paths which might be
unbounded.

In particular as previously we copied the stack memory to heap anyway,
via a noop path_make_absolute_cwd() call.
src/basic/chase-symlinks.c