Text  |   XML   |   Visible Warnings:

irssi-0.8.14 : irssi-0.8.14 analysis 2 : Dangerous Function Cast  at fe-dcc-send.c:173

Categories: LANG.CAST.FN CWE:628 CWE:234
Warning ID: 2446.27450
Procedure: fe_dcc_send_init
Trace: view
Modified: Thu Nov 26 11:02:50 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/irc/dcc/fe-dcc-send.c
   Enter fe_dcc_send_init
 163  
 164 void fe_dcc_send_init(void) 
 165 {
 166         signal_add("dcc connected", (SIGNAL_FUNC) dcc_connected);   /* Dangerous Function Cast (ID: 2448.27449) */
 167         signal_add("dcc closed", (SIGNAL_FUNC) dcc_closed);   /* Dangerous Function Cast (ID: 2451.27448) */
 168         signal_add("dcc error file open", (SIGNAL_FUNC) dcc_error_file_open);   /* Dangerous Function Cast (ID: 2462.27455) */
 169         signal_add("dcc error send exists", (SIGNAL_FUNC) dcc_error_send_exists);   /* Dangerous Function Cast (ID: 2460.27454) */
 170         signal_add("dcc error send no route", (SIGNAL_FUNC) dcc_error_send_no_route);   /* Dangerous Function Cast (ID: 2458.27453) */
 171         signal_add("dcc error close not found", (SIGNAL_FUNC) dcc_error_close_not_found);   /* Dangerous Function Cast (ID: 2455.27452) */
 172         signal_add("complete command dcc send", (SIGNAL_FUNC) sig_dcc_send_complete);   /* Dangerous Function Cast (ID: 2453.27451) */
Wrong Number of Parameters173         signal_add("dcc list print", (SIGNAL_FUNC) sig_dcc_list_print);     /* Dangerous Function Cast */
 174 } 
 175  
 176 void fe_dcc_send_deinit(void)
 177 {
 178         signal_remove("dcc connected", (SIGNAL_FUNC) dcc_connected);   /* Dangerous Function Cast (ID: 2479.27462) */
 179         signal_remove("dcc closed", (SIGNAL_FUNC) dcc_closed);   /* Dangerous Function Cast (ID: 2477.27461) */
 180         signal_remove("dcc error file open", (SIGNAL_FUNC) dcc_error_file_open);   /* Dangerous Function Cast (ID: 2474.27460) */
 181         signal_remove("dcc error send exists", (SIGNAL_FUNC) dcc_error_send_exists);   /* Dangerous Function Cast (ID: 2472.27459) */
 182         signal_remove("dcc error send no route", (SIGNAL_FUNC) dcc_error_send_no_route);   /* Dangerous Function Cast (ID: 2470.27458) */
 183         signal_remove("dcc error close not found", (SIGNAL_FUNC) dcc_error_close_not_found);   /* Dangerous Function Cast (ID: 2468.27457) */




Change Warning 2446.27450 : Dangerous Function Cast

Priority:
State:
Finding:
Owner:
Note: