Text  |   XML   |   Visible Warnings:

Irssi : Irssi analysis 1 : Null Pointer Dereference  at misc.c:102

Categories: LANG.MEM.NPD CWE:476
Warning ID: 2320.2330
Procedure: g_timeval_cmp
Trace: View
Modified: Wed Sep 2 12:10:43 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/irc/Server.c
   Enter XS_Irssi__Irc__Server_send_raw
 90 XS(XS_Irssi__Irc__Server_send_raw) 
 91 {
 92 #ifdef dVAR 
 93     dVAR; dXSARGS;
 94 #else 
 95     dXSARGS; 
 96 #endif 
 97     if (items != 2)
 98        Perl_croak(aTHX_ "Usage: %s(%s)", "Irssi::Irc::Server::send_raw", "server, cmd");
 99     PERL_UNUSED_VAR(cv); /* -W */ 
 100     {
true101         Irssi__Irc__Server      server = irssi_ref_object(ST(0));
 102         char *  cmd = (char *)SvPV_nolen(ST(1));
 103 #line 63 "Server.xs"
server <= 3711104         irc_send_cmd(server, cmd);
     /u1/paul/SATE/2010/c/irssi/irssi-0.8.14/src/irc/core/irc.c
     Enter XS_Irssi__Irc__Server_send_raw / irc_send_cmd
$param_1 <= 3711106   void irc_send_cmd(IRC_SERVER_REC *server, const char *cmd) 
 107   {
 108           GTimeVal now;
 109           int send_now;
 110    
 111           g_get_current_time(&now);
server <= 3711112           send_now = g_timeval_cmp(&now, &server->wait_cmd) >= 0 && 
     Exit XS_Irssi__Irc__Server_send_raw / irc_send_cmd
Preconditions
&$unknown_2193088 = 102
Postconditions
_svi' = &$unknown_2193084
$unknown_2193062' = $unknown_2193062 - 4
cmd' = ((char*)&$unknown_2193084)[16]
cmd' = ((char*)&$unknown_2193084)[16]
cv' = $param_2
items' != 2
my_perl' = $param_1
server' = 0
server' = 0
tv1' = &now.tv_sec
tv2' = 384




Change Warning 2320.2330 : Null Pointer Dereference

Priority:
State:
Finding:
Owner:
Note: