Text  |   XML   |   Visible Warnings:

irssi-0.8.14 : irssi-0.8.14 analysis 2 : Uninitialized Variable  at hilight-text.c:203

Categories: LANG.MEM.UVAR CWE:457
Warning ID: 7322.28413
Procedure: hilight_match_text
Trace: view
Modified: Thu Nov 26 11:09:31 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
   /kat0/fletcher/SATE/2010/irssi-0.8.14/src/fe-common/core/hilight-text.c
   Enter hilight_match_text
 192 static int hilight_match_text(HILIGHT_REC *rec, const char *text,
true193                               int *match_beg, int *match_end) 
 194 {
 195         char *match;
 196  
 197         if (rec->regexp) {
 198 #ifdef HAVE_REGEX_H 
 199                 regmatch_t rmatch[1];
 200  
 201                 if (rec->regexp_compiled &&
 202                     regexec(&rec->preg, text, 1, rmatch, 0) == 0) {
rmatch is uninitialized203                         if (rmatch[0].rm_so > 0 &&     /* Uninitialized Variable */
Preconditions
rec->regexp != 0
rec->regexp_compiled != 0




Change Warning 7322.28413 : Uninitialized Variable

Priority:
State:
Finding:
Owner:
Note: