Text  |   XML   |   Visible Warnings:

irssi-0.8.14 : irssi-0.8.14 analysis 2 : Dangerous Function Cast  at fe-events-numeric.c:710

Categories: LANG.CAST.FN CWE:628 CWE:234
Warning ID: 2879.27633
Procedure: fe_events_numeric_init
Trace: view
Modified: Thu Nov 26 11:03:35 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-common/irc/fe-events-numeric.c
   Enter fe_events_numeric_init
 700         signal_add("event 404", (SIGNAL_FUNC) event_target_received); /* cannot send to channel */   /* Dangerous Function Cast (ID: 2907.27643) */
 701         signal_add("event 408", (SIGNAL_FUNC) event_target_received); /* cannot send (+c) */   /* Dangerous Function Cast (ID: 2905.27642) */
 702         signal_add("event 442", (SIGNAL_FUNC) event_target_received); /* you're not on that channel */   /* Dangerous Function Cast (ID: 2902.27641) */
 703         signal_add("event 478", (SIGNAL_FUNC) event_target_received); /* ban list is full */   /* Dangerous Function Cast (ID: 2900.27640) */
 704         signal_add("event 482", (SIGNAL_FUNC) event_target_received); /* not chanop */   /* Dangerous Function Cast (ID: 2897.27639) */
 705         signal_add("event 486", (SIGNAL_FUNC) event_target_received); /* cannot /msg (+R) */   /* Dangerous Function Cast (ID: 2894.27638) */
 706         signal_add("event 489", (SIGNAL_FUNC) event_target_received); /* not chanop or voice */   /* Dangerous Function Cast (ID: 2890.27637) */
 707         signal_add("event 494", (SIGNAL_FUNC) event_target_received); /* cannot /msg (own +R) */   /* Dangerous Function Cast (ID: 2888.27636) */
 708         signal_add("event 506", (SIGNAL_FUNC) event_target_received); /* cannot send (+R) */   /* Dangerous Function Cast (ID: 2885.27635) */
 709         signal_add("event 716", (SIGNAL_FUNC) event_target_received); /* cannot /msg (+g) */   /* Dangerous Function Cast (ID: 2881.27634) */
Wrong Number of Parameters710         signal_add("event 717", (SIGNAL_FUNC) event_target_received); /* +g notified */     /* Dangerous Function Cast */
 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: 3175.27742) */
 719         signal_remove("event 303", (SIGNAL_FUNC) event_ison);   /* Dangerous Function Cast (ID: 3172.27741) */
 720         signal_remove("event 353", (SIGNAL_FUNC) event_names_list);   /* Dangerous Function Cast (ID: 3169.27740) */




Change Warning 2879.27633 : Dangerous Function Cast

Priority:
State:
Finding:
Owner:
Note: