Text  |   XML   |   Visible Warnings:

Irssi : Irssi analysis 1 : Uninitialized Variable  at hilight-text.c:203

Categories: LANG.MEM.UVAR CWE:457
Warning ID: 2256.2262
Procedure: hilight_match_text
Trace: View
Modified: Wed Sep 2 11:54:39 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/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
((char*)$param_1)[44] != 0
((char*)$param_1)[44] != 0
Postconditions
match_beg' = $param_3
match_end' = $param_4
rec' = $param_1
text' = $param_2




Change Warning 2256.2262 : Uninitialized Variable

Priority:
State:
Finding:
Owner:
Note: