Text  |   XML   |   Visible Warnings:

Irssi : Irssi analysis 1 : Dangerous Function Cast  at fe-events-numeric.c:709

Categories: LANG.CAST.FN CWE:628 CWE:234
Warning ID: 1482.1482
Procedure: fe_events_numeric_init
Trace: View
Modified: Wed Sep 2 11:42:08 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/irc/fe-events-numeric.c
   Enter fe_events_numeric_init
 699         signal_add("event 389", (SIGNAL_FUNC) event_target_received); /* end of protect list */   /* Dangerous Function Cast (ID: 1492.1492) */
 700         signal_add("event 404", (SIGNAL_FUNC) event_target_received); /* cannot send to channel */   /* Dangerous Function Cast (ID: 1491.1491) */
 701         signal_add("event 408", (SIGNAL_FUNC) event_target_received); /* cannot send (+c) */   /* Dangerous Function Cast (ID: 1490.1490) */
 702         signal_add("event 442", (SIGNAL_FUNC) event_target_received); /* you're not on that channel */   /* Dangerous Function Cast (ID: 1489.1489) */
 703         signal_add("event 478", (SIGNAL_FUNC) event_target_received); /* ban list is full */   /* Dangerous Function Cast (ID: 1488.1488) */
 704         signal_add("event 482", (SIGNAL_FUNC) event_target_received); /* not chanop */   /* Dangerous Function Cast (ID: 1487.1487) */
 705         signal_add("event 486", (SIGNAL_FUNC) event_target_received); /* cannot /msg (+R) */   /* Dangerous Function Cast (ID: 1486.1486) */
 706         signal_add("event 489", (SIGNAL_FUNC) event_target_received); /* not chanop or voice */   /* Dangerous Function Cast (ID: 1485.1485) */
 707         signal_add("event 494", (SIGNAL_FUNC) event_target_received); /* cannot /msg (own +R) */   /* Dangerous Function Cast (ID: 1484.1484) */
 708         signal_add("event 506", (SIGNAL_FUNC) event_target_received); /* cannot send (+R) */   /* Dangerous Function Cast (ID: 1483.1483) */
Wrong Number of Parameters709         signal_add("event 716", (SIGNAL_FUNC) event_target_received); /* cannot /msg (+g) */     /* Dangerous Function Cast */
 710         signal_add("event 717", (SIGNAL_FUNC) event_target_received); /* +g notified */   /* Dangerous Function Cast (ID: 1481.1481) */
 711 
 712  
 713 void fe_events_numeric_deinit(void)
 714 {
 715         g_free_not_null(last_away_nick);
 716         g_free_not_null(last_away_msg);
 717  
 718         signal_remove("event 221", (SIGNAL_FUNC) event_user_mode);   /* Dangerous Function Cast (ID: 1590.1590) */
 719         signal_remove("event 303", (SIGNAL_FUNC) event_ison);   /* Dangerous Function Cast (ID: 1589.1589) */




Change Warning 1482.1482 : Dangerous Function Cast

Priority:
State:
Finding:
Owner:
Note: