Text  |   XML   |   Visible Warnings:

irssi-0.8.14 : irssi-0.8.14 analysis 2 : Null Pointer Dereference  at Window.c:942

Categories: LANG.MEM.NPD CWE:476
Warning ID: 7400.28499
Procedure: XS_Irssi__Windowitem_print
Trace: view
Modified: Thu Nov 26 11:18:30 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/perl/ui/Window.c
   Enter XS_Irssi__Windowitem_print
 921 XS(XS_Irssi__Windowitem_print) 
 922 {
 923 #ifdef dVAR 
 924     dVAR; dXSARGS;
 925 #else 
 926     dXSARGS; 
 927 #endif 
 928     if (items < 2 || items > 3)
 929        Perl_croak(aTHX_ "Usage: %s(%s)", "Irssi::Windowitem::print", "item, str, level=MSGLEVEL_CLIENTNOTICE");
 930     PERL_UNUSED_VAR(cv); /* -W */ 
 931     {
true932         Irssi__Windowitem       item = irssi_ref_object(ST(0));
 933         int     level;
 934         char *  str = (char *)SvPV_nolen(ST(1));
 935  
 936         if (items < 3)
 937             level = MSGLEVEL_CLIENTNOTICE;
 938         else {
 939             level = (int)SvIV(ST(2));
 940         }
 941 #line 267 "Window.xs"
item <= 4095942         printtext_string(item->server, item->visible_name, level, str);     /* Null Pointer Dereference */
Preconditions
&$unknown_1800627 >= 4
Postconditions
_svi' = &$unknown_1800649
$unknown_1800622' = $unknown_1800622 - 4
item' = 0
items' = &$unknown_1800627
level' = ((char*)$unknown_1800649)[16]




Change Warning 7400.28499 : Null Pointer Dereference

Priority:
State:
Finding:
Owner:
Note: