]> git.lttng.org Git - lttng-tools.git/commit
Fix: path: handle truncation in utils_partial_realpath()
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Mon, 25 Nov 2024 19:49:05 +0000 (19:49 +0000)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Mon, 25 Nov 2024 19:55:56 +0000 (19:55 +0000)
commitb513fcd24cf5901b829db9f2750b393b7408ade2
tree6b692573668bdeb8b049118ca7813053b54f36a6
parent43c9fabc215560669033bcbf9c09630098b7de5b
Fix: path: handle truncation in utils_partial_realpath()

gcc warns that:
  warning: 'char* strncpy(char*, const char*, size_t)' specified bound 4096 equals destination size [-Wstringop-truncation]

Error-out when snprintf indicates that a truncation occurred.

Change-Id: I8c514da6b0ccb1a59d1555b02bfea2dd3c57febb
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/common/path.cpp
This page took 0.027932 seconds and 4 git commands to generate.