Text  |   XML   |   Visible Warnings:

irssi-0.8.14 : irssi-0.8.14 analysis 2 : Null Pointer Dereference  at perl-signals.c:95

Categories: LANG.MEM.NPD CWE:476
Warning ID: 7361.28458
Procedure: perl_signal_args_to_c
Trace: view
Modified: Thu Nov 26 11:10:06 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/perl-signals.c
   Enter perl_signal_args_to_c
 73 void perl_signal_args_to_c( 
 74         void (*callback)(void *, void **), void *cb_arg,
 75         int signal_id, SV **args, size_t n_args) 
 76 {
 77         union {
 78                 int v_int;
 79                 unsigned long v_ulong;
 80                 GSList *v_gslist;
 81                 GList *v_glist;
 82         } saved_args[SIGNAL_MAX_ARGUMENTS];
 83         void *p[SIGNAL_MAX_ARGUMENTS];
 84         PERL_SIGNAL_ARGS_REC *rec;
 85         size_t n;
 86  
true87         if (!(rec = perl_signal_args_find(signal_id))) {
 88                 const char *name = signal_get_id_str(signal_id);
 89                 if (!name) {
 90                         croak("%d is not a known signal id", signal_id);
 91                 }
 92                 croak("\"%s\" is not a registered signal", name);
 93         }
 94  
rec <= 409595         for (n = 0; n < SIGNAL_MAX_ARGUMENTS && n < n_args && rec->args[n] != NULL; ++n) {     /* Null Pointer Dereference */
Preconditions
n_args >= 1
perl_signal_args_partial >= 0
Postconditions
n' = 0
name' = 0
rec' = 0




Change Warning 7361.28458 : Null Pointer Dereference

Priority:
State:
Finding:
Owner:
Note: