Text  |   XML   |   Visible Warnings:

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

Categories: LANG.CAST.FN CWE:628 CWE:234
Warning ID: 1774.1774
Procedure: gui_readline_init
Trace: View
Modified: Wed Sep 2 11:45: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
   /u1/paul/SATE/2010/c/irssi/irssi-0.8.14/src/fe-text/gui-readline.c
   Enter gui_readline_init
 1130         key_bind("erase_completion", "Remove the completion added by word_completion", "meta-k", NULL, (SIGNAL_FUNC) key_erase_completion);   /* Dangerous Function Cast (ID: 1782.1782) */
 1131         key_bind("check_replaces", "Check word replaces", NULL, NULL, (SIGNAL_FUNC) key_check_replaces);   /* Dangerous Function Cast (ID: 1781.1781) */
 1132  
 1133         /* window managing */ 
 1134         key_bind("previous_window", "Go to the previous window", "^P", NULL, (SIGNAL_FUNC) key_previous_window);   /* Dangerous Function Cast (ID: 1780.1780) */
 1135         key_bind("next_window", "Go to the next window", "^N", NULL, (SIGNAL_FUNC) key_next_window);   /* Dangerous Function Cast (ID: 1779.1779) */
 1136         key_bind("upper_window", "Go to the split window above", "mup", NULL, (SIGNAL_FUNC) key_upper_window);   /* Dangerous Function Cast (ID: 1778.1778) */
 1137         key_bind("lower_window", "Go to the split window below", "mdown", NULL, (SIGNAL_FUNC) key_lower_window);   /* Dangerous Function Cast (ID: 1777.1777) */
 1138         key_bind("left_window", "Go to the previous window in the current split window", "mleft", NULL, (SIGNAL_FUNC) key_left_window);   /* Dangerous Function Cast (ID: 1776.1776) */
 1139         key_bind("right_window", "Go to the next window in the current split window", "mright", NULL, (SIGNAL_FUNC) key_right_window);   /* Dangerous Function Cast (ID: 1775.1775) */
Wrong Number of Parameters1140         key_bind("active_window", "Go to next window with the highest activity", "meta-a", NULL, (SIGNAL_FUNC) key_active_window);     /* Dangerous Function Cast */
 1141         key_bind("next_window_item", "Go to the next channel/query. In empty windows change to the next server", "^X", NULL, (SIGNAL_FUNC) key_next_window_item);   /* Dangerous Function Cast (ID: 1773.1773) */
 1142         key_bind("previous_window_item", "Go to the previous channel/query. In empty windows change to the previous server", NULL, NULL, (SIGNAL_FUNC) key_previous_window_item);   /* Dangerous Function Cast (ID: 1772.1772) */
 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) */




Change Warning 1774.1774 : Dangerous Function Cast

Priority:
State:
Finding:
Owner:
Note: