Text  |   XML   |   Visible Warnings:

Irssi : Irssi analysis 1 : Dangerous Function Cast  at chat-completion.c:1198

Categories: LANG.CAST.FN CWE:628 CWE:234
Warning ID: 748.748
Procedure: chat_completion_deinit
Trace: View
Modified: Wed Sep 2 11:36:36 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-common/core/chat-completion.c
   Enter chat_completion_deinit
 1188         while (global_lastmsgs != NULL)
 1189                 last_msg_destroy(&global_lastmsgs, global_lastmsgs->data);
 1190  
 1191         signal_remove("complete word", (SIGNAL_FUNC) sig_complete_word);   /* Dangerous Function Cast (ID: 755.755) */
 1192         signal_remove("complete command msg", (SIGNAL_FUNC) sig_complete_msg);   /* Dangerous Function Cast (ID: 754.754) */
 1193         signal_remove("complete command query", (SIGNAL_FUNC) sig_complete_msg);   /* Dangerous Function Cast (ID: 753.753) */
 1194         signal_remove("complete command action", (SIGNAL_FUNC) sig_complete_msg);   /* Dangerous Function Cast (ID: 752.752) */
 1195         signal_remove("complete erase command msg", (SIGNAL_FUNC) sig_erase_complete_msg);   /* Dangerous Function Cast (ID: 751.751) */
 1196         signal_remove("complete erase command query", (SIGNAL_FUNC) sig_erase_complete_msg);   /* Dangerous Function Cast (ID: 750.750) */
 1197         signal_remove("complete erase command action", (SIGNAL_FUNC) sig_erase_complete_msg);   /* Dangerous Function Cast (ID: 749.749) */
Wrong Number of Parameters1198         signal_remove("complete command connect", (SIGNAL_FUNC) sig_complete_connect);     /* Dangerous Function Cast */
 1199         signal_remove("complete command server", (SIGNAL_FUNC) sig_complete_connect);   /* Dangerous Function Cast (ID: 747.747) */
 1200         signal_remove("complete command disconnect", (SIGNAL_FUNC) sig_complete_tag);   /* Dangerous Function Cast (ID: 746.746) */
 1201         signal_remove("complete command reconnect", (SIGNAL_FUNC) sig_complete_tag);   /* Dangerous Function Cast (ID: 745.745) */
 1202         signal_remove("complete command window server", (SIGNAL_FUNC) sig_complete_tag);   /* Dangerous Function Cast (ID: 744.744) */
 1203         signal_remove("complete command topic", (SIGNAL_FUNC) sig_complete_topic);   /* Dangerous Function Cast (ID: 743.743) */
 1204         signal_remove("complete command away", (SIGNAL_FUNC) sig_complete_away);   /* Dangerous Function Cast (ID: 742.742) */
 1205         signal_remove("complete command unalias", (SIGNAL_FUNC) sig_complete_unalias);   /* Dangerous Function Cast (ID: 741.741) */
 1206         signal_remove("complete command alias", (SIGNAL_FUNC) sig_complete_alias);   /* Dangerous Function Cast (ID: 740.740) */
 1207         signal_remove("complete command window goto", (SIGNAL_FUNC) sig_complete_window);   /* Dangerous Function Cast (ID: 739.739) */
 1208         signal_remove("complete command window item move", (SIGNAL_FUNC) sig_complete_channel);   /* Dangerous Function Cast (ID: 738.738) */




Change Warning 748.748 : Dangerous Function Cast

Priority:
State:
Finding:
Owner:
Note: