(/home/sate/Testcases/c/cve/wireshark-1.2.0/epan/dissectors/packet-vnc.c) |
| |
| 2178 | | | vnc_server_set_colormap_entries(tvbuff_t *tvb, packet_info *pinfo, gint *offset, |
| 2179 | | | proto_tree *tree) |
| 2180 | | | { |
| 2181 | | | guint16 number_of_colors; |
| 2182 | | | guint counter, bytes_needed; |
| 2183 | | | proto_item *ti; |
| 2184 | | | proto_tree *vnc_colormap_num_groups, *vnc_colormap_color_group; |
| 2185 | | | |
| 2186 | [+] | | if (check_col(pinfo->cinfo, COL_INFO)) |
 |
| 2187 | | | col_set_str(pinfo->cinfo, COL_INFO, |
| 2188 | | | "Server set colormap entries"); |
| 2189 | | | |
| 2190 | | | number_of_colors = tvb_get_ntohs(tvb, 4); |
| 2191 | | | |
| 2192 | | | bytes_needed = (number_of_colors * 6) + 6; |
| 2193 | [+] | | VNC_BYTES_NEEDED(bytes_needed);
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; |
| |
|
 |
| |