(/home/sate/Testcases/c/cve/wireshark-1.2.0/epan/dissectors/packet-vnc.c) |
| |
| 1457 | | | vnc_server_framebuffer_update(tvbuff_t *tvb, packet_info *pinfo, gint *offset, |
| 1458 | | | proto_tree *tree) |
| 1459 | | | { |
| 1460 | | | gint num_rects, i; |
| 1461 | | | guint16 width, height; |
| 1462 | | | guint bytes_needed = 0; |
| 1463 | | | gint32 encoding_type; |
| 1464 | | | proto_item *ti, *ti_x, *ti_y, *ti_width, *ti_height; |
| 1465 | | | proto_tree *vnc_rect_tree, *vnc_encoding_type_tree; |
| 1466 | | | |
| 1467 | [+] | | if (check_col(pinfo->cinfo, COL_INFO)) |
 |
| 1468 | | | col_set_str(pinfo->cinfo, COL_INFO, |
| 1469 | | | "Server framebuffer update"); |
| 1470 | | | |
| 1471 | | | proto_tree_add_item(tree, hf_vnc_padding, tvb, *offset, 1, FALSE); |
| 1472 | | | *offset += 1; |
| 1473 | | | |
| 1474 | [+] | | num_rects = tvb_get_ntohs(tvb, *offset); |
 |
| 1475 | | | proto_tree_add_text(tree, tvb, *offset, 2, "Number of rectangles: %d", |
| 1476 | | | num_rects); |
| 1477 | | | *offset += 2; |
| 1478 | | | |
| 1479 | | | for(i = 1; i <= num_rects; i++) { |
Event 3:
Entering loop body. i <= num_rects evaluates to true.
hide
|
|
| 1480 | | | |
| 1481 | [+] | | VNC_BYTES_NEEDED(12);
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; |
| |
|
 |
| |