Text  |   XML   |   Visible Warnings:

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

Categories: LANG.MEM.NPD CWE:476
Warning ID: 2108.2109
Procedure: expando_topic
Trace: View
Modified: Wed Sep 2 11:51:16 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_topic
 472 static char *expando_topic(SERVER_REC *server, void *item, int *free_ret) 
 473 {
 474         if (IS_CHANNEL(item))
 475                 return CHANNEL(item)->topic;   /* Null Pointer Dereference (ID: 2109.2110) */
 476         if (IS_QUERY(item)) {
true477                 QUERY_REC *query = QUERY(item);
 478  
query <= 4095479                 if (query->server_tag == NULL)     /* Null Pointer Dereference */
Postconditions
free_ret' = $param_3
item' = $param_2
query' = 0
server' = $param_1




Change Warning 2108.2109 : Null Pointer Dereference

Priority:
State:
Finding:
Owner:
Note: