Text  |   XML   |   Visible Warnings:

irssi-0.8.14 : irssi-0.8.14 analysis 2 : Dangerous Function Cast  at fe-log.c:758

Categories: LANG.CAST.FN CWE:628 CWE:234
Warning ID: 1814.27095
Procedure: fe_log_deinit
Trace: view
Modified: Thu Nov 26 11:01:18 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-log.c
   Enter fe_log_deinit
 748  
 749 void fe_log_deinit(void) 
 750 {
 751         g_source_remove(autoremove_tag);
 752         if (log_theme_name != NULL)
 753                 signal_remove("print format", (SIGNAL_FUNC) sig_print_format);   /* Dangerous Function Cast (ID: 1775.27079) */
 754  
 755         command_unbind("log", (SIGNAL_FUNC) cmd_log);   /* Dangerous Function Cast (ID: 1822.27098) */
 756         command_unbind("log open", (SIGNAL_FUNC) cmd_log_open);   /* Dangerous Function Cast (ID: 1819.27097) */
 757         command_unbind("log close", (SIGNAL_FUNC) cmd_log_close);   /* Dangerous Function Cast (ID: 1816.27096) */
Wrong Number of Parameters758         command_unbind("log start", (SIGNAL_FUNC) cmd_log_start);     /* Dangerous Function Cast */
 759         command_unbind("log stop", (SIGNAL_FUNC) cmd_log_stop);   /* Dangerous Function Cast (ID: 1812.27094) */
 760         command_unbind("window log", (SIGNAL_FUNC) cmd_window_log);   /* Dangerous Function Cast (ID: 1810.27093) */
 761         command_unbind("window logfile", (SIGNAL_FUNC) cmd_window_logfile);   /* Dangerous Function Cast (ID: 1807.27092) */
 762         signal_remove("print text", (SIGNAL_FUNC) sig_printtext);   /* Dangerous Function Cast (ID: 1805.27091) */
 763         signal_remove("window item remove", (SIGNAL_FUNC) sig_window_item_remove);   /* Dangerous Function Cast (ID: 1803.27090) */
 764         signal_remove("window refnum changed", (SIGNAL_FUNC) sig_window_refnum_changed);   /* Dangerous Function Cast (ID: 1800.27089) */
 765         signal_remove("server disconnected", (SIGNAL_FUNC) sig_server_disconnected);   /* Dangerous Function Cast (ID: 1797.27088) */
 766         signal_remove("log locked", (SIGNAL_FUNC) sig_log_locked);   /* Dangerous Function Cast (ID: 1795.27087) */
 767         signal_remove("log create failed", (SIGNAL_FUNC) sig_log_create_failed);   /* Dangerous Function Cast (ID: 1792.27086) */
 768         signal_remove("log new", (SIGNAL_FUNC) sig_log_new);   /* Dangerous Function Cast (ID: 1790.27085) */




Change Warning 1814.27095 : Dangerous Function Cast

Priority:
State:
Finding:
Owner:
Note: