]> 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:53:57 +0000 (19:53 +0000)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Mon, 25 Nov 2024 19:56:01 +0000 (19:56 +0000)
commit12b123dcbe0f6ce549da9311be616b0c39570558
treeb4f82102187b53b60a23b02856a7da2ee4fe931b
parentb513fcd24cf5901b829db9f2750b393b7408ade2
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]

Return an error when lttng_strncpy reports that a truncation occurred.

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