(/home/sate/Testcases/c/cve/wireshark-1.2.0/epan/dissectors/packet-vnc.c) |
| |
| 2254 | | | vnc_server_cut_text(tvbuff_t *tvb, packet_info *pinfo, gint *offset, |
| 2255 | | | proto_tree *tree) |
| 2256 | | | { |
| 2257 | | | guint32 text_len; |
| 2258 | | | |
| 2259 | [+] | | if (check_col(pinfo->cinfo, COL_INFO)) |
 |
| 2260 | | | col_set_str(pinfo->cinfo, COL_INFO, |
| 2261 | | | "Server cut text"); |
| 2262 | | | |
| 2263 | | | text_len = tvb_get_ntohl(tvb, *offset); |
| 2264 | | | proto_tree_add_item(tree, |
| 2265 | | | hf_vnc_server_cut_text_len, tvb, *offset, 4, |
| 2266 | | | FALSE); |
| 2267 | | | *offset += 4; |
| 2268 | | | |
| 2269 | [+] | | VNC_BYTES_NEEDED(text_len);
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; |
| |
|
 |
| |