Text   |  XML   |  ReML   |   Visible Warnings:

Null Pointer Dereference  at hostlist_table.c:1258

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

add_hostlist_table_data

(/home/sate/Testcases/c/cve/wireshark-1.2.0/gtk/hostlist_table.c)expand/collapse
Show more  
 1236  add_hostlist_table_data(hostlist_table *hl, const address *addr, guint32 port, gboolean sender, int num_frames, int num_bytes, SAT_E sat, int port_type)
 1237  {
 1238      hostlist_talker_t *talker=NULL;
 1239      int talker_idx=0;
 1240      gboolean new_talker;
 1241   
 1242      new_talker=FALSE;
 1243      /* XXX should be optimized to allocate n extra entries at a time
 1244         instead of just one */
 1245      /* if we dont have any entries at all yet */
 1246      if(hl->hosts==NULL){
 1247          hl->hosts=g_malloc(sizeof(hostlist_talker_t));
 1248          hl->num_hosts=1;
 1249          talker=&hl->hosts[0];
 1250          talker_idx=0;
 1251          new_talker=TRUE;
 1252      }
 1253   
 1254      /* try to find it among the existing known hosts */
 1255      if(talker==NULL){
 1256          guint32 i;
 1257          for(i=0;i<hl->num_hosts;i++){
 1258              if(  (!CMP_ADDRESS(&hl->hosts[i].address, addr))&&(hl->hosts[i].port==port) ){
Show more  




Change Warning 4126.30949 : Null Pointer Dereference

Priority:
State:
Finding:
Owner:
Note: