apps/srp.c:64: error: NULL_DEREFERENCE
  pointer `pp` last assigned on line 63 could be null and is dereferenced at line 64, column 47.
Showing all 11 steps of the trace


apps/srp.c:59:1: start of procedure print_entry()
57.   }
58.   
59. > static void print_entry(CA_DB *db, int indx, int verbose, char *s)
60.   {
61.       if (indx >= 0 && verbose) {

apps/srp.c:61:9: Taking true branch
59.   static void print_entry(CA_DB *db, int indx, int verbose, char *s)
60.   {
61.       if (indx >= 0 && verbose) {
              ^
62.           int j;
63.           char **pp = sk_OPENSSL_PSTRING_value(db->db->data, indx);

apps/srp.c:61:22: Taking true branch
59.   static void print_entry(CA_DB *db, int indx, int verbose, char *s)
60.   {
61.       if (indx >= 0 && verbose) {
                           ^
62.           int j;
63.           char **pp = sk_OPENSSL_PSTRING_value(db->db->data, indx);

apps/srp.c:63:9: 
61.       if (indx >= 0 && verbose) {
62.           int j;
63. >         char **pp = sk_OPENSSL_PSTRING_value(db->db->data, indx);
64.           BIO_printf(bio_err, "%s \"%s\"\n", s, pp[DB_srpid]);
65.           for (j = 0; j < DB_NUMBER; j++) {

include/openssl/txt_db.h:31:1: start of procedure sk_OPENSSL_PSTRING_value()
  29.   
  30.   typedef OPENSSL_STRING *OPENSSL_PSTRING;
  31. > DEFINE_SPECIAL_STACK_OF(OPENSSL_PSTRING, OPENSSL_STRING)
  32.   
  33.   typedef struct txt_db_st {

crypto/stack/stack.c:284:1: start of procedure OPENSSL_sk_value()
    282.   }
    283.   
    284. > void *OPENSSL_sk_value(const OPENSSL_STACK *st, int i)
    285.   {
    286.       if (st == NULL || i < 0 || i >= st->num)

crypto/stack/stack.c:286:9: Taking true branch
    284.   void *OPENSSL_sk_value(const OPENSSL_STACK *st, int i)
    285.   {
    286.       if (st == NULL || i < 0 || i >= st->num)
                   ^
    287.           return NULL;
    288.       return (void *)st->data[i];

crypto/stack/stack.c:287:9: 
    285.   {
    286.       if (st == NULL || i < 0 || i >= st->num)
    287. >         return NULL;
    288.       return (void *)st->data[i];
    289.   }

crypto/stack/stack.c:289:1: return from a call to OPENSSL_sk_value
    287.           return NULL;
    288.       return (void *)st->data[i];
    289. > }
    290.   
    291.   void *OPENSSL_sk_set(OPENSSL_STACK *st, int i, const void *data)

include/openssl/txt_db.h:31:1: return from a call to sk_OPENSSL_PSTRING_value
  29.   
  30.   typedef OPENSSL_STRING *OPENSSL_PSTRING;
  31. > DEFINE_SPECIAL_STACK_OF(OPENSSL_PSTRING, OPENSSL_STRING)
  32.   
  33.   typedef struct txt_db_st {

apps/srp.c:64:9: 
62.           int j;
63.           char **pp = sk_OPENSSL_PSTRING_value(db->db->data, indx);
64. >         BIO_printf(bio_err, "%s \"%s\"\n", s, pp[DB_srpid]);
65.           for (j = 0; j < DB_NUMBER; j++) {
66.               BIO_printf(bio_err, "  %d = \"%s\"\n", j, pp[j]);
