Text  |   XML   |   Visible Warnings:

Irssi : Irssi analysis 1 : Dangerous Function Cast  at fe-dcc-get.c:144

Categories: LANG.CAST.FN CWE:628 CWE:234
Warning ID: 1291.1291
Procedure: fe_dcc_get_deinit
Trace: View
Modified: Wed Sep 2 11:40:11 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-get.c
   Enter fe_dcc_get_deinit
 134         signal_add("dcc error close not found", (SIGNAL_FUNC) dcc_error_close_not_found);   /* Dangerous Function Cast (ID: 1284.1284) */
 135         signal_add("dcc error write", (SIGNAL_FUNC) dcc_error_write);   /* Dangerous Function Cast (ID: 1283.1283) */
 136         signal_add("dcc list print", (SIGNAL_FUNC) sig_dcc_list_print);   /* Dangerous Function Cast (ID: 1281.1281) */
 137 }
 138  
 139 void fe_dcc_get_deinit(void) 
 140 {
 141         signal_remove("dcc request", (SIGNAL_FUNC) dcc_request);   /* Dangerous Function Cast (ID: 1294.1294) */
 142         signal_remove("dcc connected", (SIGNAL_FUNC) dcc_connected);   /* Dangerous Function Cast (ID: 1293.1293) */
 143         signal_remove("dcc closed", (SIGNAL_FUNC) dcc_closed);   /* Dangerous Function Cast (ID: 1292.1292) */
Wrong Number of Parameters144         signal_remove("dcc error file create", (SIGNAL_FUNC) dcc_error_file_create);     /* Dangerous Function Cast */
 145         signal_remove("dcc error get not found", (SIGNAL_FUNC) dcc_error_get_not_found);   /* Dangerous Function Cast (ID: 1290.1290) */
 146         signal_remove("dcc error close not found", (SIGNAL_FUNC) dcc_error_close_not_found);   /* Dangerous Function Cast (ID: 1289.1289) */
 147         signal_remove("dcc error write", (SIGNAL_FUNC) dcc_error_write);   /* Dangerous Function Cast (ID: 1288.1288) */
 148         signal_remove("dcc list print", (SIGNAL_FUNC) sig_dcc_list_print);   /* Dangerous Function Cast (ID: 1295.1295) */
 149 




Change Warning 1291.1291 : Dangerous Function Cast

Priority:
State:
Finding:
Owner:
Note: