Text  |   XML   |   Visible Warnings:

Irssi : Irssi analysis 1 : Dangerous Function Cast  at fe-ignore.c:263

Categories: LANG.CAST.FN CWE:628 CWE:234
Warning ID: 877.877
Procedure: fe_ignore_init
Trace: View
Modified: Wed Sep 2 11:37:28 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/fe-ignore.c
   Enter fe_ignore_init
 253         g_free(key);
 254 }
 255  
 256 void fe_ignore_init(void) 
 257 {
 258         command_bind("ignore", NULL, (SIGNAL_FUNC) cmd_ignore);   /* Dangerous Function Cast (ID: 881.881) */
 259         command_bind("unignore", NULL, (SIGNAL_FUNC) cmd_unignore);   /* Dangerous Function Cast (ID: 880.880) */
 260  
 261         signal_add("ignore destroyed", (SIGNAL_FUNC) sig_ignore_destroyed);   /* Dangerous Function Cast (ID: 879.879) */
 262         signal_add("ignore created", (SIGNAL_FUNC) sig_ignore_created);   /* Dangerous Function Cast (ID: 878.878) */
Wrong Number of Parameters263         signal_add("ignore changed", (SIGNAL_FUNC) sig_ignore_created);     /* Dangerous Function Cast */
 264  
 265         command_set_options("ignore", "regexp full except replies -network -ircnet -time -pattern -channels");
 266 
 267  
 268 void fe_ignore_deinit(void)
 269 {
 270         command_unbind("ignore", (SIGNAL_FUNC) cmd_ignore);   /* Dangerous Function Cast (ID: 882.882) */
 271         command_unbind("unignore", (SIGNAL_FUNC) cmd_unignore);   /* Dangerous Function Cast (ID: 886.886) */
 272  
 273         signal_remove("ignore destroyed", (SIGNAL_FUNC) sig_ignore_destroyed);   /* Dangerous Function Cast (ID: 885.885) */




Change Warning 877.877 : Dangerous Function Cast

Priority:
State:
Finding:
Owner:
Note: