Text  |   XML   |   Visible Warnings:

Irssi : Irssi analysis 1 : Null Pointer Dereference  at expandos.c:357

Categories: LANG.MEM.NPD CWE:476
Warning ID: 2104.2105
Procedure: expando_chanmode
Trace: View
Modified: Wed Sep 2 11:51:14 2009   show details
 
Priority: None
State: None
Finding: None
Owner: None
  edit properties

Legend [ X ]
Warning Location
Contributes
Parse Error
Other Warning
Two or More Loop Iterations
On Execution Path
Comment
Macro
Preprocessor
Include
Keyword
Preprocessed Away

Source  |  Language: C Hide Legend     
ProblemLineSource
   /u1/paul/SATE/2010/c/irssi/irssi-0.8.14/src/core/expandos.c
   Enter expando_chanmode
 343 static char *expando_chanmode(SERVER_REC *server, void *item, int *free_ret) 
 344 {
 345         char *cmode;
 346         char *args;
 347  
 348         *free_ret = FALSE;
 349  
 350         if (!IS_CHANNEL(item))
 351                 return NULL;
 352  
 353         if (!settings_get_bool("chanmode_expando_strip"))
 354                 return CHANNEL(item)->mode;   /* Null Pointer Dereference (ID: 2105.2106) */
 355  
 356         *free_ret = TRUE;
true357         cmode = g_strdup(CHANNEL(item)->mode);     /* Null Pointer Dereference */
Preconditions
&$unknown_118751 != 0
Postconditions
free_ret' = $param_3
item' = $param_2
server' = $param_1




Change Warning 2104.2105 : Null Pointer Dereference

Priority:
State:
Finding:
Owner:
Note: