aboutsummaryrefslogtreecommitdiffstats
path: root/wsutil/str_util.h
diff options
context:
space:
mode:
authorJoão Valverde <j@v6e.pt>2022-10-01 22:32:42 +0100
committerA Wireshark GitLab Utility <gerald+gitlab-utility@wireshark.org>2022-10-02 18:01:35 +0000
commit539fbafce402221da7726e9861e0bbaf019c46b3 (patch)
tree7618875db1d57a64d4ae533d63990052259f73b9 /wsutil/str_util.h
parent0bc040b44a047c7413ccdd434a45902f34a0f1b3 (diff)
Remove encoding warnings from format_text()
The use of format_text() to sanitize strings by dissectors is too widespread to make this check useful. Allow it for now.
Diffstat (limited to 'wsutil/str_util.h')
-rw-r--r--wsutil/str_util.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/wsutil/str_util.h b/wsutil/str_util.h
index 0651e6844f..88efee4074 100644
--- a/wsutil/str_util.h
+++ b/wsutil/str_util.h
@@ -214,7 +214,8 @@ WS_DLL_PUBLIC
char *ws_strdup_underline(wmem_allocator_t *allocator, long offset, size_t len);
/** Given a wmem scope, a not-necessarily-null-terminated string,
- * expected to be in UTF-8 and the length of the string,
+ * expected to be in UTF-8 but possibly containing invalid sequences
+ * (as it may have come from packet data), and the length of the string,
* generate a valid UTF-8 string from it, allocated in the specified
* wmem scope, that:
*