Text  |   XML   |   Visible Warnings:

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

Categories: LANG.MEM.NPD CWE:476
Warning ID: 7394.28493
Procedure: XS_Irssi__UI__Window_command
Trace: view
Modified: Thu Nov 26 11:18:15 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__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_1739906
active_win' = 0
$unknown_1739889' = $unknown_1739889 - 4
cmd' = ((char*)&$unknown_1739906)[12]
items' != 2
old' = active_win
window' = 0




Change Warning 7394.28493 : Null Pointer Dereference

Priority:
State:
Finding:
Owner:
Note: