Text   |  XML   |  ReML   |   Visible Warnings:

Cast Alters Value  at packet-vnc.c:1481

No properties have been set. | edit properties
Jump to warning location ↓ warning details...
Show Events | Options

vnc_server_framebuffer_update

(/home/sate/Testcases/c/cve/wireshark-1.2.0/epan/dissectors/packet-vnc.c)expand/collapse
Show more  
 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++) {
 1480   
 1481[+]                 VNC_BYTES_NEEDED(12);
Show more  




Change Warning 3048.33818 : Cast Alters Value

Priority:
State:
Finding:
Owner:
Note: