apps/srp.c:500: error: BUFFER_OVERRUN_L3
  Offset: [0, 5] Size: [1, +oo] by call to `update_index`.
Showing all 11 steps of the trace


apps/srp.c:401:10: Call
399.                      srpvfile);
400.   
401.       db = load_index(srpvfile, &db_attr);
                ^
402.       if (db == NULL)
403.           goto end;

apps/apps.c:1575:18: Call
  1573.           goto err;
  1574.       }
  1575.       if ((tmpdb = TXT_DB_read(in, DB_NUMBER)) == NULL)
                           ^
  1576.           goto err;
  1577.   

crypto/txt_db/txt_db.c:89:5: Assignment
    87.           goto err;
    88.       ret->num_fields = num;
    89.       ret->index = NULL;
              ^
    90.       ret->qual = NULL;
    91.       if ((ret->data = sk_OPENSSL_PSTRING_new_null()) == NULL)

apps/srp.c:500:25: Call
498.                       || (userinfo
499.                           && ((row[DB_srpinfo] = OPENSSL_strdup(userinfo)) == NULL))
500.                       || !update_index(db, row)) {
                               ^
501.                       OPENSSL_free(row[DB_srpid]);
502.                       OPENSSL_free(row[DB_srpgN]);

apps/srp.c:135:1: Parameter `*db->db->index`
  133.   }
  134.   
  135. > static int update_index(CA_DB *db, char **row)
  136.   {
  137.       char **irow;

apps/srp.c:147:10: Call
  145.       irow[DB_NUMBER] = NULL;
  146.   
  147.       if (!TXT_DB_insert(db->db, irow)) {
                  ^
  148.           BIO_printf(bio_err, "failed to update srpvfile\n");
  149.           BIO_printf(bio_err, "TXT_DB error number %ld\n", db->db->error);

crypto/txt_db/txt_db.c:278:1: <Offset trace>
276.   }
277.   
278. > int TXT_DB_insert(TXT_DB *db, OPENSSL_STRING *row)
279.   {
280.       int i;

crypto/txt_db/txt_db.c:278:1: Parameter `db->num_fields`
    276.   }
    277.   
    278. > int TXT_DB_insert(TXT_DB *db, OPENSSL_STRING *row)
    279.   {
    280.       int i;

crypto/txt_db/txt_db.c:278:1: <Length trace>
276.   }
277.   
278. > int TXT_DB_insert(TXT_DB *db, OPENSSL_STRING *row)
279.   {
280.       int i;

crypto/txt_db/txt_db.c:278:1: Parameter `*db->index`
    276.   }
    277.   
    278. > int TXT_DB_insert(TXT_DB *db, OPENSSL_STRING *row)
    279.   {
    280.       int i;

crypto/txt_db/txt_db.c:284:13: Array access: Offset: [0, 5] Size: [1, +oo] by call to `update_index` 
    282.   
    283.       for (i = 0; i < db->num_fields; i++) {
    284.           if (db->index[i] != NULL) {
                       ^
    285.               if ((db->qual[i] != NULL) && (db->qual[i] (row) == 0))
    286.                   continue;
