Text  |   XML   |   Visible Warnings:

Irssi : Irssi analysis 1 : Null Pointer Dereference  at Window.c:554

Categories: LANG.MEM.NPD CWE:476
Warning ID: 2332.2342
Procedure: XS_Irssi__UI__Window_command
Trace: View
Modified: Wed Sep 2 12:15:52 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/perl/ui/Window.c
   Enter XS_Irssi__UI__Window_command
 535 XS(XS_Irssi__UI__Window_command) 
 536 {
 537 #ifdef dVAR 
 538     dVAR; dXSARGS;
 539 #else 
 540     dXSARGS; 
 541 #endif 
 542     if (items != 2)
 543        Perl_croak(aTHX_ "Usage: %s(%s)", "Irssi::UI::Window::command", "window, cmd");
 544     PERL_UNUSED_VAR(cv); /* -W */ 
 545     {
true546         Irssi__UI__Window       window = irssi_ref_object(ST(0));
 547         char *  cmd = (char *)SvPV_nolen(ST(1));
 548 #line 158 "Window.xs"
 549         WINDOW_REC *old;
 550 #line 551 "Window.c"
 551 #line 160 "Window.xs"
 552         old = active_win;
 553         active_win = window;
window <= 4095554         perl_command(cmd, window->active_server, window->active);     /* Null Pointer Dereference */
Postconditions
_svi' = &$unknown_2740562
active_win' = 0
$unknown_2740540' = $unknown_2740540 - 4
cmd' = ((char*)&$unknown_2740562)[16]
cv' = $param_2
items' != 2
my_perl' = $param_1
old' = active_win
window' = 0




Change Warning 2332.2342 : Null Pointer Dereference

Priority:
State:
Finding:
Owner:
Note: