Text  |   XML   |   Visible Warnings:

Irssi : Irssi analysis 1 : Dangerous Function Cast  at nicklist.c:586

Categories: LANG.CAST.FN CWE:628 CWE:234
Warning ID: 86.86
Procedure: nicklist_init
Trace: View
Modified: Wed Sep 2 11:32:01 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/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: 87.87) */
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: 88.88) */
 592         signal_remove("channel destroyed", (SIGNAL_FUNC) sig_channel_destroyed);   /* Dangerous Function Cast (ID: 89.89) */
 593  
 594         module_uniq_destroy("NICK");
 595 }




Change Warning 86.86 : Dangerous Function Cast

Priority:
State:
Finding:
Owner:
Note: