Text  |   XML   |   Visible Warnings:

irssi-0.8.14 : irssi-0.8.14 analysis 2 : Dangerous Function Cast  at fe-exec.c:647

Categories: LANG.CAST.FN CWE:628 CWE:234
Warning ID: 1638.27021
Procedure: fe_exec_init
Trace: view
Modified: Thu Nov 26 11:01:00 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-exec.c
   Enter fe_exec_init
 637         if (!IS_EXEC_WI(item))
 638                 return;
 639  
 640         net_sendbuffer_send(item->process->out, data, strlen(data));
 641         net_sendbuffer_send(item->process->out, "\n", 1);
 642         signal_stop();
 643 }
 644  
 645 void fe_exec_init(void) 
 646 {
Wrong Number of Parameters647         command_bind("exec", NULL, (SIGNAL_FUNC) cmd_exec);     /* Dangerous Function Cast */
 648         command_set_options("exec", "!- interactive nosh +name out +msg +notice +in window close +level quiet");
 649  
 650         signal_exec_input = signal_get_uniq_id("exec input");
 651         signal_add("pidwait", (SIGNAL_FUNC) sig_pidwait);   /* Dangerous Function Cast (ID: 1635.27020) */
 652         signal_add("exec input", (SIGNAL_FUNC) sig_exec_input);   /* Dangerous Function Cast (ID: 1632.27019) */
 653         signal_add("window destroyed", (SIGNAL_FUNC) sig_window_destroyed);   /* Dangerous Function Cast (ID: 1630.27018) */
 654         signal_add_first("send text", (SIGNAL_FUNC) event_text);   /* Dangerous Function Cast (ID: 1627.27017) */
 655 } 
 656  
 657 void fe_exec_deinit(void)




Change Warning 1638.27021 : Dangerous Function Cast

Priority:
State:
Finding:
Owner:
Note: