Text  |   XML   |   Visible Warnings:

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

Categories: LANG.CAST.FN CWE:628 CWE:234
Warning ID: 1573.26991
Procedure: event_command_last
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_last
 213                             && !command_hide_output++) {
 214                 signal_add_first("print starting", (SIGNAL_FUNC) sig_stop);   /* Dangerous Function Cast (ID: 1571.26990) */
 215                 signal_add_first("print format", (SIGNAL_FUNC) sig_stop);   /* Dangerous Function Cast (ID: 1570.26989) */
 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) {
Wrong Number of Parameters223                 signal_remove("print starting", (SIGNAL_FUNC) sig_stop);     /* Dangerous Function Cast */
 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) */
 226         }
 227 } 
 228  
 229 static void event_default_command(const char *data, void *server,
 230                                   WI_ITEM_REC *item)
 231 {
 232         const char *cmdchars, *ptr;
 233         char *cmd, *p;




Change Warning 1573.26991 : Dangerous Function Cast

Priority:
State:
Finding:
Owner:
Note: