Text   |  XML   |  ReML   |   Visible Warnings:

Ignored Return Value  at packet-vnc.c:1961

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

process_tight_rect_filter_palette

(/home/sate/Testcases/c/cve/wireshark-1.2.0/epan/dissectors/packet-vnc.c)expand/collapse
Show more  
 1952  process_tight_rect_filter_palette(tvbuff_t *tvb, packet_info *pinfo, gint *offset,
 1953                                    proto_tree *tree, gint *bits_per_pixel)
 1954  {
 1955          vnc_packet_t *per_packet_info;
 1956          gint num_colors;
 1957          guint palette_bytes;
 1958   
 1959          /* See TightVNC's vnc_unixsrc/vncviewer/tight.c:InitFilterPaletteBPP() */
 1960   
 1961          per_packet_info = p_get_proto_data(pinfo->fd, proto_vnc);
 1962   
 1963          VNC_BYTES_NEEDED(1);
 1964          proto_tree_add_item(tree, hf_vnc_tight_palette_num_colors, tvb, *offset, 1, FALSE);
 1965          num_colors = tvb_get_guint8(tvb, *offset);
 1966          *offset += 1;
 1967   
 1968          num_colors++;
 1969          if (num_colors < 2)
 1970                  return 0;
 1971   
 1972          if (per_packet_info->depth == 24)
 1973                  palette_bytes = num_colors * 3;
 1974          else 
 1975                  palette_bytes = num_colors * per_packet_info->depth / 8;
 1976   
 1977          VNC_BYTES_NEEDED(palette_bytes);
 1978          proto_tree_add_item(tree, hf_vnc_tight_palette_data, tvb, *offset, palette_bytes, FALSE);
 1979          *offset += palette_bytes;
 1980   
 1981          /* This is the number of bits per pixel *in the image data*, not the actual client depth */
 1982          if (num_colors == 2)
 1983                  *bits_per_pixel = 1;
 1984          else 
 1985                  *bits_per_pixel = 8;
 1986   
 1987          return 0;
 1988  }
Show more  




Change Warning 5445.35669 : Ignored Return Value

Priority:
State:
Finding:
Owner:
Note: