epan: Guard g_base64_decode_inplace() against zero length string
authorStig Bjørlykke <stig@bjorlykke.org>
Wed, 5 Sep 2018 13:41:46 +0000 (15:41 +0200)
committerStig Bjørlykke <stig@bjorlykke.org>
Wed, 5 Sep 2018 17:19:42 +0000 (17:19 +0000)
commit0b80a4218788284332a1fabef057d7c2b818f792
tree46a00d8dfb63e8dfbf3f06eabc02d17789a4d499
parentc15ada34b17b614230194ba8f22dad76b51c30fa
epan: Guard g_base64_decode_inplace() against zero length string

The g_base64_decode_inplace() does not handle zero length string
so add a guard for this before calling.

Bug: 15113
Change-Id: I89fa17dd62af238f4282835c317e5c8be6e0c8a1
Reviewed-on: https://code.wireshark.org/review/29428
Petri-Dish: Stig Bjørlykke <stig@bjorlykke.org>
Tested-by: Petri Dish Buildbot
Reviewed-by: Stig Bjørlykke <stig@bjorlykke.org>
epan/dissectors/packet-http.c
epan/dissectors/packet-smtp.c
epan/wslua/wslua_byte_array.c
ui/qt/show_packet_bytes_dialog.cpp