Text  |   XML   |   Visible Warnings:

Irssi : Irssi analysis 1 : Dangerous Function Cast  at gui-readline.c:1153

Categories: LANG.CAST.FN CWE:628 CWE:234
Warning ID: 1764.1764
Procedure: gui_readline_init
Trace: View
Modified: Wed Sep 2 11:45:15 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-text/gui-readline.c
   Enter gui_readline_init
 1143  
 1144         key_bind("refresh_screen", "Redraw screen", "^L", NULL, (SIGNAL_FUNC) irssi_redraw);   /* Dangerous Function Cast (ID: 1771.1771) */
 1145         key_bind("scroll_backward", "Scroll to previous page", "prior", NULL, (SIGNAL_FUNC) key_scroll_backward);   /* Dangerous Function Cast (ID: 1770.1770) */
 1146         key_bind("scroll_backward", NULL, "meta-p", NULL, (SIGNAL_FUNC) key_scroll_backward);   /* Dangerous Function Cast (ID: 1769.1769) */
 1147         key_bind("scroll_forward", "Scroll to next page", "next", NULL, (SIGNAL_FUNC) key_scroll_forward);   /* Dangerous Function Cast (ID: 1768.1768) */
 1148         key_bind("scroll_forward", NULL, "meta-n", NULL, (SIGNAL_FUNC) key_scroll_forward);   /* Dangerous Function Cast (ID: 1767.1767) */
 1149         key_bind("scroll_start", "Scroll to the beginning of the window", "chome", NULL, (SIGNAL_FUNC) key_scroll_start);   /* Dangerous Function Cast (ID: 1766.1766) */
 1150         key_bind("scroll_end", "Scroll to the end of the window", "cend", NULL, (SIGNAL_FUNC) key_scroll_end);   /* Dangerous Function Cast (ID: 1765.1765) */
 1151  
 1152         /* inserting special input characters to line.. */ 
Wrong Number of Parameters1153         key_bind("escape_char", "Insert the next character exactly as-is to input line", NULL, NULL, (SIGNAL_FUNC) key_escape);     /* Dangerous Function Cast */
 1154         key_bind("insert_text", "Append text to line", NULL, NULL, (SIGNAL_FUNC) key_insert_text);   /* Dangerous Function Cast (ID: 1763.1763) */
 1155  
 1156         /* autoreplaces */ 
 1157         key_bind("multi", NULL, "return", "check_replaces;send_line", NULL);
 1158         key_bind("multi", NULL, "space", "check_replaces;insert_text  ", NULL);
 1159  
 1160         /* moving between windows */ 
 1161         for (n = 0; changekeys[n] != '\0'; n++) {
 1162                 key = g_strdup_printf("meta-%c", changekeys[n]);
 1163                 ltoa(data, n+1);




Change Warning 1764.1764 : Dangerous Function Cast

Priority:
State:
Finding:
Owner:
Note: