Text  |   XML   |   Visible Warnings:

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

Categories: LANG.CAST.FN CWE:628 CWE:234
Warning ID: 1785.1785
Procedure: gui_readline_init
Trace: View
Modified: Wed Sep 2 11:45:22 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
 1117         key_bind("erase_to_beg_of_line", "Erase everything before the cursor", NULL, NULL, (SIGNAL_FUNC) key_erase_to_beg_of_line);   /* Dangerous Function Cast (ID: 1793.1793) */
 1118         key_bind("erase_to_end_of_line", "Erase everything after the cursor", "^K", NULL, (SIGNAL_FUNC) key_erase_to_end_of_line);   /* Dangerous Function Cast (ID: 1792.1792) */
 1119         key_bind("yank_from_cutbuffer", "\"Undelete\", paste the last deleted text", "^Y", NULL, (SIGNAL_FUNC) key_yank_from_cutbuffer);   /* Dangerous Function Cast (ID: 1791.1791) */
 1120         key_bind("transpose_characters", "Swap current and previous character", "^T", NULL, (SIGNAL_FUNC) key_transpose_characters);   /* Dangerous Function Cast (ID: 1790.1790) */
 1121         key_bind("transpose_words", "Swap current and previous word", NULL, NULL, (SIGNAL_FUNC) key_transpose_words);   /* Dangerous Function Cast (ID: 1789.1789) */
 1122         key_bind("capitalize_word", "Capitalize the current word", NULL, NULL, (SIGNAL_FUNC) key_capitalize_word);   /* Dangerous Function Cast (ID: 1788.1788) */
 1123         key_bind("downcase_word", "Downcase the current word", NULL, NULL, (SIGNAL_FUNC) key_downcase_word);   /* Dangerous Function Cast (ID: 1787.1787) */
 1124         key_bind("upcase_word", "Upcase the current word", NULL, NULL, (SIGNAL_FUNC) key_upcase_word);   /* Dangerous Function Cast (ID: 1786.1786) */
 1125  
 1126         /* line transmitting */ 
Wrong Number of Parameters1127         key_bind("send_line", "Execute the input line", "return", NULL, (SIGNAL_FUNC) key_send_line);     /* Dangerous Function Cast */
 1128         key_bind("word_completion_backward", "", NULL, NULL, (SIGNAL_FUNC) key_word_completion_backward);   /* Dangerous Function Cast (ID: 1784.1784) */
 1129         key_bind("word_completion", "Complete the current word", "tab", NULL, (SIGNAL_FUNC) key_word_completion);   /* Dangerous Function Cast (ID: 1783.1783) */
 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) */




Change Warning 1785.1785 : Dangerous Function Cast

Priority:
State:
Finding:
Owner:
Note: