Text  |   XML   |   Visible Warnings:

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

Categories: LANG.CAST.FN CWE:628 CWE:234
Warning ID: 1795.1795
Procedure: gui_readline_init
Trace: View
Modified: Wed Sep 2 11:45:48 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
 1105         key_bind("backward_history", "Go back one line in the history", "up", NULL, (SIGNAL_FUNC) key_backward_history);   /* Dangerous Function Cast (ID: 1803.1803) */
 1106         key_bind("forward_history", "Go forward one line in the history", "down", NULL, (SIGNAL_FUNC) key_forward_history);   /* Dangerous Function Cast (ID: 1802.1802) */
 1107  
 1108         /* line editing */ 
 1109         key_bind("backspace", "Delete the previous character", "backspace", NULL, (SIGNAL_FUNC) key_backspace);   /* Dangerous Function Cast (ID: 1801.1801) */
 1110         key_bind("delete_character", "Delete the current character", "delete", NULL, (SIGNAL_FUNC) key_delete_character);   /* Dangerous Function Cast (ID: 1800.1800) */
 1111         key_bind("delete_character", NULL, "^D", NULL, (SIGNAL_FUNC) key_delete_character);   /* Dangerous Function Cast (ID: 1799.1799) */
 1112         key_bind("delete_next_word", "Delete the word after the cursor", "meta-d", NULL, (SIGNAL_FUNC) key_delete_next_word);   /* Dangerous Function Cast (ID: 1798.1798) */
 1113         key_bind("delete_previous_word", "Delete the word before the cursor", "meta-backspace", NULL, (SIGNAL_FUNC) key_delete_previous_word);   /* Dangerous Function Cast (ID: 1797.1797) */
 1114         key_bind("delete_to_previous_space", "Delete up to the previous space", "^W", NULL, (SIGNAL_FUNC) key_delete_to_previous_space);   /* Dangerous Function Cast (ID: 1796.1796) */
Wrong Number of Parameters1115         key_bind("delete_to_next_space", "Delete up to the next space", "", NULL, (SIGNAL_FUNC) key_delete_to_next_space);     /* Dangerous Function Cast */
 1116         key_bind("erase_line", "Erase the whole input line", "^U", NULL, (SIGNAL_FUNC) key_erase_line);   /* Dangerous Function Cast (ID: 1794.1794) */
 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  




Change Warning 1795.1795 : Dangerous Function Cast

Priority:
State:
Finding:
Owner:
Note: