Text  |   XML   |   Visible Warnings:

Irssi : Irssi analysis 1 : Dangerous Function Cast  at completion.c:835

Categories: LANG.CAST.FN CWE:628 CWE:234
Warning ID: 781.781
Procedure: completion_init
Trace: View
Modified: Wed Sep 2 11:36:49 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/completion.c
   Enter completion_init
 825         complist = NULL;
 826         last_line = NULL; last_line_pos = -1;
 827  
 828         chat_completion_init();
 829  
 830         command_bind("completion", NULL, (SIGNAL_FUNC) cmd_completion);   /* Dangerous Function Cast (ID: 778.778) */
 831  
 832         signal_add_first("complete word", (SIGNAL_FUNC) sig_complete_word);   /* Dangerous Function Cast (ID: 779.779) */
 833         signal_add_first("complete erase", (SIGNAL_FUNC) sig_complete_erase);   /* Dangerous Function Cast (ID: 780.780) */
 834         signal_add("complete command set", (SIGNAL_FUNC) sig_complete_set);   /* Dangerous Function Cast (ID: 777.777) */
Wrong Number of Parameters835         signal_add("complete command toggle", (SIGNAL_FUNC) sig_complete_toggle);     /* Dangerous Function Cast */
 836         signal_add("complete command load", (SIGNAL_FUNC) sig_complete_filename);   /* Dangerous Function Cast (ID: 782.782) */
 837         signal_add("complete command cat", (SIGNAL_FUNC) sig_complete_filename);   /* Dangerous Function Cast (ID: 775.775) */
 838         signal_add("complete command save", (SIGNAL_FUNC) sig_complete_filename);   /* Dangerous Function Cast (ID: 785.785) */
 839         signal_add("complete command reload", (SIGNAL_FUNC) sig_complete_filename);   /* Dangerous Function Cast (ID: 783.783) */
 840         signal_add("complete command rawlog open", (SIGNAL_FUNC) sig_complete_filename);   /* Dangerous Function Cast (ID: 784.784) */
 841         signal_add("complete command rawlog save", (SIGNAL_FUNC) sig_complete_filename);   /* Dangerous Function Cast (ID: 776.776) */
 842         signal_add("complete command help", (SIGNAL_FUNC) sig_complete_command);   /* Dangerous Function Cast (ID: 786.786) */
 843  
 844         command_set_options("completion", "auto delete");
 845 




Change Warning 781.781 : Dangerous Function Cast

Priority:
State:
Finding:
Owner:
Note: