diff options
author | wmeier <wmeier@f5534014-38df-0310-8fa8-9805f1628bb7> | 2012-03-05 00:46:31 +0000 |
---|---|---|
committer | wmeier <wmeier@f5534014-38df-0310-8fa8-9805f1628bb7> | 2012-03-05 00:46:31 +0000 |
commit | fb973ba617c51c53faf2398f325595f7152852b1 (patch) | |
tree | 88ed6ad71e039ba2be7ce08db98fc1c0d99ee862 /epan/dissectors/packet-t30.c | |
parent | 7afd6ab8e3c500d375390e384a6c0ee25fe2bd6f (diff) |
Trust but verify that there's no g_snprintf() buffer overflow.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@41346 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/dissectors/packet-t30.c')
-rw-r--r-- | epan/dissectors/packet-t30.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/epan/dissectors/packet-t30.c b/epan/dissectors/packet-t30.c index 3e6df9a9b9..cba32e478b 100644 --- a/epan/dissectors/packet-t30.c +++ b/epan/dissectors/packet-t30.c @@ -644,6 +644,7 @@ dissect_t30_partial_page_request(tvbuff_t *tvb, int offset, packet_info *pinfo, for (;bit;) { if (octet & bit) { ++frame_count; + DISSECTOR_ASSERT((buf_top-buf) < BUF_SIZE); buf_top += g_snprintf(buf_top, BUF_SIZE - (gulong)(buf_top - buf), "%u, ", frame); } bit >>= 1; |