chiark / gitweb /
path-util: introduce new safe_getcwd() wrapper
authorLennart Poettering <lennart@poettering.net>
Wed, 17 Jan 2018 10:16:31 +0000 (11:16 +0100)
committerSven Eden <yamakuzure@gmx.net>
Wed, 30 May 2018 05:50:10 +0000 (07:50 +0200)
commit8298a315bce73eaa6b80e545e75b669650e62b14
treeaaf99ec538ca787a3f237a26265b525531863a9d
parent7ac6f0842a9dcd363f0a6ec0a2ae7ab14c3b2edc
path-util: introduce new safe_getcwd() wrapper

It's like get_current_dir_name() but protects us from
CVE-2018-1000001-style exploits:

https://www.halfdog.net/Security/2017/LibcRealpathBufferUnderflow/
src/basic/path-util.c
src/basic/path-util.h