Make sure to have bytes before adding raw values to tree
Bug: 13910
Change-Id: I9c6fe679df12e0358df80caf01268acb75ee424c
Reviewed-on: https://code.wireshark.org/review/22782
Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Michael Mann <mmann78@netscape.net>
if(subencoding_mask & 0x1) { /* Raw */
raw_length = tile_width * tile_height * bytes_per_pixel;
+ VNC_BYTES_NEEDED(raw_length);
proto_tree_add_item(tile_tree, hf_vnc_hextile_raw_value, tvb,
*offset, raw_length, ENC_NA);
- VNC_BYTES_NEEDED(raw_length);
*offset += raw_length;
} else {
if(subencoding_mask & 0x2) { /* Background Specified */