Text  |   XML   |   Visible Warnings:

irssi-0.8.14 : irssi-0.8.14 analysis 2 : Dangerous Function Cast  at gui-readline.c:1109

Categories: LANG.CAST.FN CWE:628 CWE:234
Warning ID: 3864.27953
Procedure: gui_readline_init
Trace: view
Modified: Thu Nov 26 11:05:39 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
   /kat0/fletcher/SATE/2010/irssi-0.8.14/src/fe-text/gui-readline.c
   Enter gui_readline_init
 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: 3879.27959) */
 1100         key_bind("beginning_of_line", NULL, "^A", NULL, (SIGNAL_FUNC) key_beginning_of_line);   /* Dangerous Function Cast (ID: 3877.27958) */
 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: 3875.27957) */
 1102         key_bind("end_of_line", NULL, "^E", NULL, (SIGNAL_FUNC) key_end_of_line);   /* Dangerous Function Cast (ID: 3872.27956) */
 1103  
 1104         /* history */ 
 1105         key_bind("backward_history", "Go back one line in the history", "up", NULL, (SIGNAL_FUNC) key_backward_history);   /* Dangerous Function Cast (ID: 3870.27955) */
 1106         key_bind("forward_history", "Go forward one line in the history", "down", NULL, (SIGNAL_FUNC) key_forward_history);   /* Dangerous Function Cast (ID: 3867.27954) */
 1107  
 1108         /* line editing */ 
Wrong Number of Parameters1109         key_bind("backspace", "Delete the previous character", "backspace", NULL, (SIGNAL_FUNC) key_backspace);     /* Dangerous Function Cast */
 1110         key_bind("delete_character", "Delete the current character", "delete", NULL, (SIGNAL_FUNC) key_delete_character);   /* Dangerous Function Cast (ID: 3862.27952) */
 1111         key_bind("delete_character", NULL, "^D", NULL, (SIGNAL_FUNC) key_delete_character);   /* Dangerous Function Cast (ID: 3859.27951) */
 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: 3857.27950) */
 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: 3854.27949) */
 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: 3852.27948) */
 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: 3850.27947) */
 1116         key_bind("erase_line", "Erase the whole input line", "^U", NULL, (SIGNAL_FUNC) key_erase_line);   /* Dangerous Function Cast (ID: 3848.27946) */
 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: 3846.27945) */
 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: 3844.27944) */
 1119         key_bind("yank_from_cutbuffer", "\"Undelete\", paste the last deleted text", "^Y", NULL, (SIGNAL_FUNC) key_yank_from_cutbuffer);   /* Dangerous Function Cast (ID: 3841.27943) */




Change Warning 3864.27953 : Dangerous Function Cast

Priority:
State:
Finding:
Owner:
Note: