Text   |  XML   |  ReML   |   Visible Warnings:

Null Pointer Dereference  at mate_util.c:159

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

new_avp_from_finfo

(/home/sate/Testcases/c/cve/wireshark-1.2.0/plugins/mate/mate_util.c)expand/collapse
Show more  
 345  extern AVP* new_avp_from_finfo(const gchar* name, field_info* finfo) {
 346          AVP* new = g_mem_chunk_alloc(avp_chunk);
 347          gchar* value;
 348   
 349          new->n = scs_subscribe(avp_strings, name);
 350   
 351          if (finfo->value.ftype->val_to_string_repr) {
 352[+][+]                 value = scs_subscribe(avp_strings, fvalue_to_string_repr(&finfo->value,FTREPR_DISPLAY,NULL));
expand/collapse

scs_subscribe

(/home/sate/Testcases/c/cve/wireshark-1.2.0/plugins/mate/mate_util.c)expand/collapse
Show more  
 145  gchar* scs_subscribe(SCS_collection* c, const gchar* s) {
 146          gchar* orig = NULL;
 147          guint* ip = NULL;
 148          size_t len = 0;
 149          GMemChunk* chunk = NULL;
 150   
 151          g_hash_table_lookup_extended(c->hash,(gconstpointer)s,(gpointer)&orig,(gpointer)&ip);
 152   
 153          if (ip) {
 154                  (*ip)++;
 155          } else {
 156                  ip = g_mem_chunk_alloc(c->ctrs);
 157                  *ip = 0;
 158   
 159                  len = strlen(s) + 1;
Show more  
Show more  




Change Warning 3738.30029 : Null Pointer Dereference

Priority:
State:
Finding:
Owner:
Note: