Skip to content

Commit

Permalink
epan: Increase timezone buffer size
Browse files Browse the repository at this point in the history
Some internationalized strings can exceed this size and become
truncated with encoding errors.

Fixes #18562.
  • Loading branch information
randstr committed Oct 28, 2022
1 parent b1bd41a commit 267954c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion epan/to_str.c
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ abs_time_to_str_ex(wmem_allocator_t *scope, const nstime_t *abs_time, field_disp
{
struct tm *tmp;
char buf_nsecs[32];
char buf_tzone[32];
char buf_tzone[256];

if (fmt == BASE_NONE)
fmt = ABSOLUTE_TIME_LOCAL;
Expand Down

0 comments on commit 267954c

Please sign in to comment.