summaryrefslogtreecommitdiffstats
path: root/src/coredump
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2024-10-31 16:53:39 +0100
committerLennart Poettering <lennart@poettering.net>2024-10-31 23:08:11 +0100
commitb1694040afe3c33100018d522f091b721b84b87c (patch)
tree017eed7d47f10f8eb61893a81d8a3a593a9053bd /src/coredump
parentiovw: normalize destructors (diff)
downloadsystemd-b1694040afe3c33100018d522f091b721b84b87c.tar.xz
systemd-b1694040afe3c33100018d522f091b721b84b87c.zip
coredump: use memory_startswith() when looking at a data blob
Diffstat (limited to 'src/coredump')
-rw-r--r--src/coredump/coredump.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/coredump/coredump.c b/src/coredump/coredump.c
index 176e5373b8..f2acf8c37f 100644
--- a/src/coredump/coredump.c
+++ b/src/coredump/coredump.c
@@ -1033,7 +1033,7 @@ static int context_parse_iovw(Context *context, struct iovec_wrapper *iovw) {
* count (see process_socket() and gather_pid_metadata_*()) */
assert(((char*) iovec->iov_base)[iovec->iov_len] == 0);
- const char *p = startswith(iovec->iov_base, meta_field_names[i]);
+ const char *p = memory_startswith(iovec->iov_base, iovec->iov_len, meta_field_names[i]);
if (p) {
context->meta[i] = p;
context->meta_size[i] = iovec->iov_len - strlen(meta_field_names[i]);