Text  |   XML   |   Visible Warnings:

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

Categories: LANG.CAST.FN CWE:628 CWE:234
Warning ID: 793.26240
Procedure: nicklist_init
Trace: view
Modified: Thu Nov 26 10:57:51 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/core/nicklist.c
   Enter nicklist_init
 576                 return TRUE; /* matched without fuzzyness */ 
 577  
 578         /* matched with some fuzzyness .. check if there's an exact match 
 579            for some other nick in the same channel. */ 
 580         return nick_nfind(channel, msgstart, (int) (msg-msgstart)) == NULL;
 581 }
 582  
 583 void nicklist_init(void) 
 584 {
 585         signal_add_first("channel created", (SIGNAL_FUNC) sig_channel_created);   /* Dangerous Function Cast (ID: 794.26239) */
Wrong Number of Parameters586         signal_add("channel destroyed", (SIGNAL_FUNC) sig_channel_destroyed);     /* Dangerous Function Cast */
 587 } 
 588  
 589 void nicklist_deinit(void)
 590 {
 591         signal_remove("channel created", (SIGNAL_FUNC) sig_channel_created);   /* Dangerous Function Cast (ID: 795.26242) */
 592         signal_remove("channel destroyed", (SIGNAL_FUNC) sig_channel_destroyed);   /* Dangerous Function Cast (ID: 796.26241) */
 593  
 594         module_uniq_destroy("NICK");
 595 }




Change Warning 793.26240 : Dangerous Function Cast

Priority:
State:
Finding:
Owner:
Note: