Text   |  XML   |  ReML   |   Visible Warnings:

Null Pointer Dereference  at packet-x11.c:2085

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

string16

(/home/sate/Testcases/c/cve/wireshark-1.2.0/epan/dissectors/packet-x11.c)expand/collapse
Show more  
 2430  static void string16(tvbuff_t *tvb, int *offsetp, proto_tree *t, int hf,
 2431      int hf_bytes, unsigned length, gboolean little_endian)
 2432  {
 2433        char *s = NULL;
 2434        gint l = 0;
 2435   
 2436        length += length;
 2437        string16_with_buffer_preallocated(tvb, t, hf, hf_bytes, *offsetp, length,
 2438[+]                                         &s, &l, little_endian);
expand/collapse

string16_with_buffer_preallocated

(/home/sate/Testcases/c/cve/wireshark-1.2.0/epan/dissectors/packet-x11.c)expand/collapse
Show more  
 2063  static void string16_with_buffer_preallocated(tvbuff_t *tvb, proto_tree *t,
 2064                                                int hf, int hf_bytes,
 2065                                                int offset, unsigned length,
 2066                                                char **s, int *sLength,
 2067                                                gboolean little_endian)
 2068  {
 2069        int truncated = FALSE;
 2070        unsigned l = length / 2;
 2071   
 2072[+]       if (stringIsActuallyAn8BitString(tvb, offset, l)) {
 2073              char *dp;
 2074              int soffset = offset;
 2075   
 2076              if (l > STRING16_MAX_DISPLAYED_LENGTH) {
 2077                    truncated = TRUE;
 2078                    l = STRING16_MAX_DISPLAYED_LENGTH;
 2079              }
 2080              if (*sLength < (int) l + 3) {
 2081                    *s = ep_alloc(l + 3);
 2082                    *sLength = l + 3;
 2083              }
 2084              dp = *s;
 2085              *dp++ = '"';
Show more  
Show more  




Change Warning 3062.32804 : Null Pointer Dereference

Priority:
State:
Finding:
Owner:
Note: