Text  |   XML   |   Visible Warnings:

irssi-0.8.14 : irssi-0.8.14 analysis 2 : Dangerous Function Cast  at irc-nicklist.c:462

Categories: LANG.CAST.FN CWE:628 CWE:234
Warning ID: 1102.26548
Procedure: irc_nicklist_init
Trace: view
Modified: Thu Nov 26 10:59:03 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/irc/core/irc-nicklist.c
   Enter irc_nicklist_init
 452  
 453 static void sig_connected(IRC_SERVER_REC *server)
 454 {
 455         if (IS_IRC_SERVER(server))
 456                 server->get_nick_flags = get_nick_flags;
 457 }
 458  
 459 void irc_nicklist_init(void) 
 460 {
 461         signal_add_first("event nick", (SIGNAL_FUNC) event_nick);   /* Dangerous Function Cast (ID: 1103.26549) */
Wrong Number of Parameters462         signal_add_first("event 352", (SIGNAL_FUNC) event_who);     /* Dangerous Function Cast */
 463         signal_add("silent event who", (SIGNAL_FUNC) event_who);   /* Dangerous Function Cast (ID: 1101.26547) */
 464         signal_add("silent event whois", (SIGNAL_FUNC) event_whois);   /* Dangerous Function Cast (ID: 1100.26546) */
 465         signal_add_first("event 311", (SIGNAL_FUNC) event_whois);   /* Dangerous Function Cast (ID: 1099.26545) */
 466         signal_add_first("whois away", (SIGNAL_FUNC) event_whois_away);   /* Dangerous Function Cast (ID: 1098.26544) */
 467         signal_add_first("whois oper", (SIGNAL_FUNC) event_whois_ircop);   /* Dangerous Function Cast (ID: 1097.26543) */
 468         signal_add_first("event 306", (SIGNAL_FUNC) event_own_away);   /* Dangerous Function Cast (ID: 1096.26542) */
 469         signal_add_first("event 305", (SIGNAL_FUNC) event_own_unaway);   /* Dangerous Function Cast (ID: 1113.26559) */
 470         signal_add_first("event 353", (SIGNAL_FUNC) event_names_list);   /* Dangerous Function Cast (ID: 1112.26558) */
 471         signal_add_first("event 366", (SIGNAL_FUNC) event_end_of_names);   /* Dangerous Function Cast (ID: 1111.26557) */
 472         signal_add_first("event 432", (SIGNAL_FUNC) event_nick_invalid);   /* Dangerous Function Cast (ID: 1110.26556) */




Change Warning 1102.26548 : Dangerous Function Cast

Priority:
State:
Finding:
Owner:
Note: