Text  |   XML   |   Visible Warnings:

Irssi : Irssi analysis 1 : Dangerous Function Cast  at fe-dcc-send.c:181

Categories: LANG.CAST.FN CWE:628 CWE:234
Warning ID: 1307.1307
Procedure: fe_dcc_send_deinit
Trace: View
Modified: Wed Sep 2 11:40:17 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/irc/dcc/fe-dcc-send.c
   Enter fe_dcc_send_deinit
 171         signal_add("dcc error close not found", (SIGNAL_FUNC) dcc_error_close_not_found);   /* Dangerous Function Cast (ID: 1300.1300) */
 172         signal_add("complete command dcc send", (SIGNAL_FUNC) sig_dcc_send_complete);   /* Dangerous Function Cast (ID: 1299.1299) */
 173         signal_add("dcc list print", (SIGNAL_FUNC) sig_dcc_list_print);   /* Dangerous Function Cast (ID: 1298.1298) */
 174 }
 175  
 176 void fe_dcc_send_deinit(void) 
 177 {
 178         signal_remove("dcc connected", (SIGNAL_FUNC) dcc_connected);   /* Dangerous Function Cast (ID: 1310.1310) */
 179         signal_remove("dcc closed", (SIGNAL_FUNC) dcc_closed);   /* Dangerous Function Cast (ID: 1309.1309) */
 180         signal_remove("dcc error file open", (SIGNAL_FUNC) dcc_error_file_open);   /* Dangerous Function Cast (ID: 1308.1308) */
Wrong Number of Parameters181         signal_remove("dcc error send exists", (SIGNAL_FUNC) dcc_error_send_exists);     /* Dangerous Function Cast */
 182         signal_remove("dcc error send no route", (SIGNAL_FUNC) dcc_error_send_no_route);   /* Dangerous Function Cast (ID: 1306.1306) */
 183         signal_remove("dcc error close not found", (SIGNAL_FUNC) dcc_error_close_not_found);   /* Dangerous Function Cast (ID: 1305.1305) */
 184         signal_remove("complete command dcc send", (SIGNAL_FUNC) sig_dcc_send_complete);   /* Dangerous Function Cast (ID: 1304.1304) */
 185         signal_remove("dcc list print", (SIGNAL_FUNC) sig_dcc_list_print);   /* Dangerous Function Cast (ID: 1311.1311) */
 186 




Change Warning 1307.1307 : Dangerous Function Cast

Priority:
State:
Finding:
Owner:
Note: