Text   |  XML   |  ReML   |   Visible Warnings:

Cast Alters Value  at packet-vnc.c:1831

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

vnc_zrle_encoding

(/home/sate/Testcases/c/cve/wireshark-1.2.0/epan/dissectors/packet-vnc.c)expand/collapse
Show more  
 1804  vnc_zrle_encoding(tvbuff_t *tvb, packet_info *pinfo, gint *offset,
 1805                    proto_tree *tree, guint16 width, guint16 height)
 1806  #else
 1807  static guint
 1808  vnc_zrle_encoding(tvbuff_t *tvb, packet_info *pinfo _U_, gint *offset,
 1809                    proto_tree *tree, guint16 width _U_, guint16 height _U_)
 1810  #endif
 1811  {
 1812          guint32 data_len;
 1813  #ifdef HAVE_LIBZ 
 1814          guint8 palette_size;
 1815          guint8 bytes_per_cpixel = vnc_get_bytes_per_pixel(pinfo);
 1816          gint uncomp_offset = 0;
 1817          guint length;
 1818          gint subencoding_type;
 1819          tvbuff_t *uncomp_tvb = NULL;
 1820          proto_tree *zrle_subencoding_tree;
 1821          proto_item *ti;
 1822  #endif
 1823   
 1824[+]         VNC_BYTES_NEEDED(4);
 1825          proto_tree_add_item(tree, hf_vnc_zrle_len, tvb, *offset,  
 1826                              4, FALSE);
 1827          data_len = tvb_get_ntohl(tvb, *offset);
 1828   
 1829          *offset += 4;
 1830   
 1831[+]         VNC_BYTES_NEEDED(data_len);
Show more  




Change Warning 3040.31969 : Cast Alters Value

Priority:
State:
Finding:
Owner:
Note: