(/home/sate/Testcases/c/cve/wireshark-1.2.0/epan/dissectors/packet-vnc.c) |
| |
| 1694 | | | vnc_hextile_encoding(tvbuff_t *tvb, packet_info *pinfo, gint *offset, |
| 1695 | | | proto_tree *tree, guint16 width, guint16 height) |
| 1696 | | | { |
| 1697 | | | guint8 bytes_per_pixel = vnc_get_bytes_per_pixel(pinfo); |
| 1698 | | | guint8 i, subencoding_mask, num_subrects, subrect_len; |
| 1699 | | | guint length; |
| 1700 | | | proto_tree *subencoding_mask_tree, *subrect_tree, *num_subrects_tree; |
| 1701 | | | proto_item *ti; |
| 1702 | | | |
| 1703 | [+] | | VNC_BYTES_NEEDED(1);
x /home/sate/Testcases/c/cve/wireshark-1.2.0/epan/dissectors/packet-vnc.c |
| |
295 | #define VNC_BYTES_NEEDED(a) \ |
296 | if(a > (guint)tvb_length_remaining(tvb, *offset)) \ |
297 | return a; |
| |
|
 |
| 1704 | | | ti = proto_tree_add_item(tree, hf_vnc_hextile_subencoding_mask, tvb, |
| 1705 | | | *offset, 1, FALSE); |
| 1706 | | | subencoding_mask = tvb_get_guint8(tvb, *offset); |
| 1707 | | | |
| 1708 | | | subencoding_mask_tree = |
| 1709 | | | proto_item_add_subtree(ti, ett_vnc_hextile_subencoding_mask); |
| 1710 | | | |
| 1711 | | | proto_tree_add_item(subencoding_mask_tree, |
| 1712 | | | hf_vnc_hextile_raw, tvb, *offset, 1, |
| 1713 | | | FALSE); |
| 1714 | | | proto_tree_add_item(subencoding_mask_tree, |
| 1715 | | | hf_vnc_hextile_bg, tvb, *offset, 1, |
| 1716 | | | FALSE); |
| 1717 | | | proto_tree_add_item(subencoding_mask_tree, |
| 1718 | | | hf_vnc_hextile_fg, tvb, *offset, 1, |
| 1719 | | | FALSE); |
| 1720 | | | proto_tree_add_item(subencoding_mask_tree, |
| 1721 | | | hf_vnc_hextile_anysubrects, tvb, *offset, 1, |
| 1722 | | | FALSE); |
| 1723 | | | proto_tree_add_item(subencoding_mask_tree, |
| 1724 | | | hf_vnc_hextile_subrectscolored, tvb, *offset, 1, |
| 1725 | | | FALSE); |
| 1726 | | | *offset += 1; |
| 1727 | | | |
| 1728 | | | if(subencoding_mask & 0x1) { |
Event 13:
Taking true branch. subencoding_mask & 1 evaluates to true.
hide
|
|
| 1729 | | | length = width * height * bytes_per_pixel; |
| 1730 | | | |
| 1731 | [+] | | VNC_BYTES_NEEDED(length);
x /home/sate/Testcases/c/cve/wireshark-1.2.0/epan/dissectors/packet-vnc.c |
| |
295 | #define VNC_BYTES_NEEDED(a) \ |
296 | if(a > (guint)tvb_length_remaining(tvb, *offset)) \ |
297 | return a; |
| |
|
 |
| |