diff options
author | João Valverde <j@v6e.pt> | 2022-11-25 19:04:09 +0000 |
---|---|---|
committer | João Valverde <j@v6e.pt> | 2022-12-03 01:54:52 +0000 |
commit | 32f88ad22cf28efc6679d13ded6df99c72c3ea8c (patch) | |
tree | 084cb4ce3d1ed016def1d99d2748150dc3a644db /epan/dissectors/packet-radius.c | |
parent | 3311b341064403b9098d0db51d2732a271ffbbeb (diff) |
wmem: Remove strbuf max size parameter
This parameter was introduced as a safeguard for bugs
that generate an unbounded string but its utility for
that purpose is doubtful and the way it is being used
creates problems with invalid truncation of UTF-8
strings.
Rename wmem_strbuf_sized_new() with a better name.
Diffstat (limited to 'epan/dissectors/packet-radius.c')
-rw-r--r-- | epan/dissectors/packet-radius.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-radius.c b/epan/dissectors/packet-radius.c index ddda9c2490..bc291c4604 100644 --- a/epan/dissectors/packet-radius.c +++ b/epan/dissectors/packet-radius.c @@ -680,7 +680,7 @@ dissect_ascend_data_filter(proto_tree *tree, tvbuff_t *tvb, packet_info *pinfo _ return wmem_strdup_printf(wmem_packet_scope(), "Wrong attribute length %d", len); } - filterstr = wmem_strbuf_sized_new(wmem_packet_scope(), 128, 128); + filterstr = wmem_strbuf_new_sized(wmem_packet_scope(), 128); ti = proto_tree_add_item(tree, hf_radius_ascend_data_filter, tvb, 0, -1, ENC_NA); ascend_tree = proto_item_add_subtree(ti, ett_radius_ascend); |