Text  |   XML   |   Visible Warnings:

irssi-0.8.14 : irssi-0.8.14 analysis 2 : Dangerous Function Cast  at fe-core-commands.c:215

Categories: LANG.CAST.FN CWE:628 CWE:234
Warning ID: 1570.26989
Procedure: event_command
Trace: view
Modified: Thu Nov 26 11:00:51 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/fe-core-commands.c
   Enter event_command
 205         command_cmd = *data != '\0' && 
 206                 strchr(settings_get_str("cmdchars"), *data) != NULL;   /* Null Pointer Dereference (ID: 7305.28394) */
 207  
 208         /* /^command hides the output of the command */ 
 209         cmdchar = *data == '\0' ? NULL : 
 210                 strchr(settings_get_str("cmdchars"), *data);   /* Null Pointer Dereference (ID: 7304.28393) */
 211         if (cmdchar != NULL && (data[1] == '^' ||
 212                                 (data[1] == *cmdchar && data[2] == '^'))
 213                             && !command_hide_output++) {
 214                 signal_add_first("print starting", (SIGNAL_FUNC) sig_stop);   /* Dangerous Function Cast (ID: 1571.26990) */
Wrong Number of Parameters215                 signal_add_first("print format", (SIGNAL_FUNC) sig_stop);     /* Dangerous Function Cast */
 216                 signal_add_first("print text", (SIGNAL_FUNC) sig_stop);   /* Dangerous Function Cast (ID: 1568.26988) */
 217         }
 218 } 
 219  
 220 static void event_command_last(const char *data)
 221 {
 222         if (command_hide_output && !--command_hide_output) {
 223                 signal_remove("print starting", (SIGNAL_FUNC) sig_stop);   /* Dangerous Function Cast (ID: 1573.26991) */
 224                 signal_remove("print format", (SIGNAL_FUNC) sig_stop);   /* Dangerous Function Cast (ID: 1574.26992) */
 225                 signal_remove("print text", (SIGNAL_FUNC) sig_stop);   /* Dangerous Function Cast (ID: 1575.26993) */




Change Warning 1570.26989 : Dangerous Function Cast

Priority:
State:
Finding:
Owner:
Note: