From a9535243c5232e408c1b539548742e227babf94c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Valverde?= Date: Sun, 30 Oct 2022 21:48:08 +0000 Subject: [PATCH] PVFS: Validate raw data encoding as ASCII Fixes #18572. --- epan/dissectors/packet-pvfs2.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/epan/dissectors/packet-pvfs2.c b/epan/dissectors/packet-pvfs2.c index eb8edbf1ce..cef6db15c5 100644 --- a/epan/dissectors/packet-pvfs2.c +++ b/epan/dissectors/packet-pvfs2.c @@ -7,6 +7,9 @@ * By Gerald Combs * Copyright 1998 Gerald Combs * + * Dissector for Parallel Virtual File System (PVFS) version 2. + * https://web.archive.org/web/20160701052501/http://www.pvfs.org/ + * * Copied from packet-smb.c and others * * TODO @@ -25,6 +28,7 @@ #include #include #include +#include #include #include "packet-tcp.h" @@ -2369,7 +2373,7 @@ dissect_pvfs2_getconfig_response(tvbuff_t *tvb, proto_tree *parent_tree, *pentry= '\0'; - tmp_entry = entry; + tmp_entry = get_ascii_string(pinfo->pool, pentry, entry_length); tmp_entry_length = entry_length; /* Remove all whitespace from front of entry */