Text  |   XML   |   Visible Warnings:

Irssi : Irssi analysis 1 : Dangerous Function Cast  at hilight-text.c:698

Categories: LANG.CAST.FN CWE:628 CWE:234
Warning ID: 1069.1069
Procedure: hilight_text_init
Trace: View
Modified: Wed Sep 2 11:38:44 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/hilight-text.c
   Enter hilight_text_init
 688         read_settings();
 689  
 690         nickmatch = nickmatch_init(hilight_nick_cache);
 691         read_hilight_config();
 692  
 693         signal_add_first("print text", (SIGNAL_FUNC) sig_print_text);   /* Dangerous Function Cast (ID: 1068.1068) */
 694         signal_add("setup reread", (SIGNAL_FUNC) read_hilight_config);   /* Dangerous Function Cast (ID: 1067.1067) */
 695         signal_add("setup changed", (SIGNAL_FUNC) read_settings);   /* Dangerous Function Cast (ID: 1066.1066) */
 696  
 697         command_bind("hilight", NULL, (SIGNAL_FUNC) cmd_hilight);   /* Dangerous Function Cast (ID: 1065.1065) */
Wrong Number of Parameters698         command_bind("dehilight", NULL, (SIGNAL_FUNC) cmd_dehilight);     /* Dangerous Function Cast */
 699         command_set_options("hilight", "-color -actcolor -level -priority -channels nick word line mask full regexp");
 700 
 701  
 702 void hilight_text_deinit(void)
 703 {
 704         hilights_destroy_all();
 705         nickmatch_deinit(nickmatch);
 706  
 707         signal_remove("print text", (SIGNAL_FUNC) sig_print_text);   /* Dangerous Function Cast (ID: 1072.1072) */
 708         signal_remove("setup reread", (SIGNAL_FUNC) read_hilight_config);   /* Dangerous Function Cast (ID: 1071.1071) */




Change Warning 1069.1069 : Dangerous Function Cast

Priority:
State:
Finding:
Owner:
Note: