Text  |   XML   |   Visible Warnings:

Irssi : Irssi analysis 1 : Dangerous Function Cast  at fe-help.c:262

Categories: LANG.CAST.FN CWE:628 CWE:234
Warning ID: 875.875
Procedure: fe_help_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-help.c
   Enter fe_help_init
 252  
 253         cmd = g_ascii_strdown(data, -1);
 254         g_strchomp(cmd);
 255         show_help(cmd);
 256         g_free(cmd);
 257 }
 258  
 259 void fe_help_init(void) 
 260 {
 261         settings_add_str("misc", "help_path", HELPDIR);
Wrong Number of Parameters262         command_bind("help", NULL, (SIGNAL_FUNC) cmd_help);     /* Dangerous Function Cast */
 263 
 264  
 265 void fe_help_deinit(void)
 266 {
 267         command_unbind("help", (SIGNAL_FUNC) cmd_help);   /* Dangerous Function Cast (ID: 876.876) */
 268 }




Change Warning 875.875 : Dangerous Function Cast

Priority:
State:
Finding:
Owner:
Note: