apps/pkcs12.c:352: error: BUFFER_OVERRUN_L3
  Offset: [1, +oo] Size: [0, +oo] by call to `sk_value`.
Showing all 7 steps of the trace


apps/pkcs12.c:351:8: Assignment
349.   		}
350.   		/* Exclude verified certificate */
351.   		for (i = 1; i < sk_num (chain2) ; i++) 
              ^
352.   				 sk_push(certs, sk_value (chain2, i));
353.   		sk_free(chain2);

apps/pkcs12.c:352:21: Call
350.   		/* Exclude verified certificate */
351.   		for (i = 1; i < sk_num (chain2) ; i++) 
352.   				 sk_push(certs, sk_value (chain2, i));
                           ^
353.   		sk_free(chain2);
354.   			

crypto/stack/stack.c:293:1: <Offset trace>
291.   }
292.   
293. > char *sk_value(STACK *st, int i)
294.   {
295.   	if(st == NULL) return NULL;

crypto/stack/stack.c:293:1: Parameter `i`
  291.   }
  292.   
  293. > char *sk_value(STACK *st, int i)
  294.   {
  295.   	if(st == NULL) return NULL;

crypto/stack/stack.c:293:1: <Length trace>
291.   }
292.   
293. > char *sk_value(STACK *st, int i)
294.   {
295.   	if(st == NULL) return NULL;

crypto/stack/stack.c:293:1: Parameter `*st->data`
  291.   }
  292.   
  293. > char *sk_value(STACK *st, int i)
  294.   {
  295.   	if(st == NULL) return NULL;

crypto/stack/stack.c:296:9: Array access: Offset: [1, +oo] Size: [0, +oo] by call to `sk_value` 
  294.   {
  295.   	if(st == NULL) return NULL;
  296.   	return st->data[i];
                 ^
  297.   }
  298.   
