pgsql: Avoid crash on non-ASCII invalid type bytes

We don't really want to a full hex representation to the INFO
column, just replace it for unprintable characters.

Fix #18591
This commit is contained in:
John Thacker 2022-11-11 17:44:25 -05:00
parent 795e318739
commit 3014fd9d17
1 changed files with 1 additions and 1 deletions

View File

@ -721,7 +721,7 @@ dissect_pgsql_msg(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* dat
the contents of every message in a TCP packet. Could it be
done any better? */
col_append_fstr(pinfo->cinfo, COL_INFO, "%s%c",
( first_message ? "" : "/" ), type);
( first_message ? "" : "/" ), g_ascii_isprint(type) ? type : '?');
first_message = FALSE;
{