Text   |  XML   |  ReML   |   Visible Warnings:

Cast Alters Value  at packet-vnc.c:1731

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

vnc_hextile_encoding

(/home/sate/Testcases/c/cve/wireshark-1.2.0/epan/dissectors/packet-vnc.c)expand/collapse
Show more  
 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);
 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) { /* Raw */
 1729                  length = width * height * bytes_per_pixel;
 1730   
 1731[+]                 VNC_BYTES_NEEDED(length);
Show more  




Change Warning 3043.31967 : Cast Alters Value

Priority:
State:
Finding:
Owner:
Note: