Text  |   XML   |   Visible Warnings:

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

Categories: LANG.CAST.FN CWE:628 CWE:234
Warning ID: 1803.1803
Procedure: gui_readline_init
Trace: View
Modified: Wed Sep 2 11:46:09 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
 1095         key_bind("forward_word", "Move the cursor a word forward", "cright", NULL, (SIGNAL_FUNC) key_forward_word);   /* Dangerous Function Cast (ID: 1811.1811) */
 1096         key_bind("forward_word", NULL, "meta-f", NULL, (SIGNAL_FUNC) key_forward_word);   /* Dangerous Function Cast (ID: 1810.1810) */
 1097         key_bind("backward_to_space", "Move the cursor backward to a space", NULL, NULL, (SIGNAL_FUNC) key_backward_to_space);   /* Dangerous Function Cast (ID: 1809.1809) */
 1098         key_bind("forward_to_space", "Move the cursor forward to a space", NULL, NULL, (SIGNAL_FUNC) key_forward_to_space);   /* Dangerous Function Cast (ID: 1808.1808) */
 1099         key_bind("beginning_of_line", "Move the cursor to the beginning of the line", "home", NULL, (SIGNAL_FUNC) key_beginning_of_line);   /* Dangerous Function Cast (ID: 1807.1807) */
 1100         key_bind("beginning_of_line", NULL, "^A", NULL, (SIGNAL_FUNC) key_beginning_of_line);   /* Dangerous Function Cast (ID: 1806.1806) */
 1101         key_bind("end_of_line", "Move the cursor to the end of the line", "end", NULL, (SIGNAL_FUNC) key_end_of_line);   /* Dangerous Function Cast (ID: 1805.1805) */
 1102         key_bind("end_of_line", NULL, "^E", NULL, (SIGNAL_FUNC) key_end_of_line);   /* Dangerous Function Cast (ID: 1804.1804) */
 1103  
 1104         /* history */ 
Wrong Number of Parameters1105         key_bind("backward_history", "Go back one line in the history", "up", NULL, (SIGNAL_FUNC) key_backward_history);     /* Dangerous Function Cast */
 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) */
 1115         key_bind("delete_to_next_space", "Delete up to the next space", "", NULL, (SIGNAL_FUNC) key_delete_to_next_space);   /* Dangerous Function Cast (ID: 1795.1795) */




Change Warning 1803.1803 : Dangerous Function Cast

Priority:
State:
Finding:
Owner:
Note: