Text   |  XML   |  ReML   |   Visible Warnings:

Null Pointer Dereference  at to_str.c:858

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

dissect_lcp_fcs_alternatives_opt

(/home/sate/Testcases/c/cve/wireshark-1.2.0/epan/dissectors/packet-ppp.c)expand/collapse
Show more  
 1795  dissect_lcp_fcs_alternatives_opt(const ip_tcp_opt *optp, tvbuff_t *tvb,
 1796                          int offset, guint length, packet_info *pinfo _U_,
 1797                          proto_tree *tree)
 1798  {
 1799    proto_item *tf;
 1800    proto_tree *field_tree = NULL;
 1801    guint8 alternatives;
 1802   
 1803    alternatives = tvb_get_guint8(tvb, offset + 2);
 1804    tf = proto_tree_add_text(tree, tvb, offset, length, "%s: 0x%02x",
 1805            optp->name, alternatives);
 1806    field_tree = proto_item_add_subtree(tf, *optp->subtree_index);
 1807    offset += 2;
 1808    if (alternatives & 0x1)
 1809      proto_tree_add_text(field_tree, tvb, offset + 2, 1, "%s",
 1810[+]        decode_boolean_bitfield(alternatives, 0x1, 8, "Null FCS", NULL));
expand/collapse

decode_boolean_bitfield

(/home/sate/Testcases/c/cve/wireshark-1.2.0/epan/to_str.c)expand/collapse
Show more  
 846  const char *
 847  decode_boolean_bitfield(guint32 val, guint32 mask, int width,
 848      const char *truedesc, const char *falsedesc)
 849  {
 850    char *buf;
 851    char *p;
 852   
 853    buf=ep_alloc(1025); /* is this a bit overkill? */
 854    p = decode_bitfield_value(buf, val, mask, width);
 855    if (val & mask)
 856      strcpy(p, truedesc);
 857    else 
 858      strcpy(p, falsedesc);
Show more  
Show more  




Change Warning 2889.31417 : Null Pointer Dereference

Priority:
State:
Finding:
Owner:
Note: