test/ssltest_old.c:3007: error: BUFFER_OVERRUN_L3
  Offset: [3, +oo] (⇐ [0, +oo] + 3) Size: [0, 8388607] by call to `BN_bin2bn`.
Showing all 13 steps of the trace


test/ssltest_old.c:3006:9: Call
3004.       if ((dh = DH_new()) == NULL)
3005.           return (NULL);
3006.       p = BN_bin2bn(dh512_p, sizeof(dh512_p), NULL);
                ^
3007.       g = BN_bin2bn(dh512_g, sizeof(dh512_g), NULL);
3008.       if ((p == NULL) || (g == NULL) || !DH_set0_pqg(dh, p, NULL, g)) {

crypto/bn/bn_lib.c:475:1: Parameter `*ret->d`
  473.   }
  474.   
  475. > BIGNUM *BN_bin2bn(const unsigned char *s, int len, BIGNUM *ret)
  476.   {
  477.       unsigned int i, m;

test/ssltest_old.c:3007:9: Call
3005.           return (NULL);
3006.       p = BN_bin2bn(dh512_p, sizeof(dh512_p), NULL);
3007.       g = BN_bin2bn(dh512_g, sizeof(dh512_g), NULL);
                ^
3008.       if ((p == NULL) || (g == NULL) || !DH_set0_pqg(dh, p, NULL, g)) {
3009.           DH_free(dh);

crypto/bn/bn_lib.c:475:1: Parameter `*ret->d`
  473.   }
  474.   
  475. > BIGNUM *BN_bin2bn(const unsigned char *s, int len, BIGNUM *ret)
  476.   {
  477.       unsigned int i, m;

crypto/bn/bn_lib.c:497:9: Call
  495.       i = ((n - 1) / BN_BYTES) + 1;
  496.       m = ((n - 1) % (BN_BYTES));
  497.       if (bn_wexpand(ret, (int)i) == NULL) {
                 ^
  498.           BN_free(bn);
  499.           return NULL;

crypto/bn/bn_lib.c:1016:1: Parameter `*a->d`
    1014.   }
    1015.   
    1016. > BIGNUM *bn_wexpand(BIGNUM *a, int words)
    1017.   {
    1018.       return (words <= a->dmax) ? a : bn_expand2(a, words);

crypto/bn/bn_lib.c:1018:37: Call
    1016.   BIGNUM *bn_wexpand(BIGNUM *a, int words)
    1017.   {
    1018.       return (words <= a->dmax) ? a : bn_expand2(a, words);
                                                ^
    1019.   }
    1020.   

crypto/bn/bn_lib.c:323:1: Parameter `*b->d`
      321.    */
      322.   
      323. > BIGNUM *bn_expand2(BIGNUM *b, int words)
      324.   {
      325.       bn_check_top(b);

crypto/bn/bn_lib.c:328:23: Call
      326.   
      327.       if (words > b->dmax) {
      328.           BN_ULONG *a = bn_expand_internal(b, words);
                                   ^
      329.           if (!a)
      330.               return NULL;

crypto/bn/bn_lib.c:246:1: <Length trace>
244.   /* This is used by bn_expand2() */
245.   /* The caller MUST check that words > b->dmax before calling this */
246. > static BN_ULONG *bn_expand_internal(const BIGNUM *b, int words)
247.   {
248.       BN_ULONG *A, *a = NULL;

crypto/bn/bn_lib.c:246:1: Parameter `*b->d`
        244.   /* This is used by bn_expand2() */
        245.   /* The caller MUST check that words > b->dmax before calling this */
        246. > static BN_ULONG *bn_expand_internal(const BIGNUM *b, int words)
        247.   {
        248.       BN_ULONG *A, *a = NULL;

crypto/bn/bn_lib.c:272:5: Assignment
        270.   
        271.   #if 1
        272.       B = b->d;
                   ^
        273.       /* Check if the previous number needs to be copied */
        274.       if (B != NULL) {

crypto/bn/bn_lib.c:289:18: Array access: Offset: [3, +oo] (⇐ [0, +oo] + 3) Size: [0, 8388607] by call to `BN_bin2bn` 
        287.               a1 = B[1];
        288.               a2 = B[2];
        289.               a3 = B[3];
                                ^
        290.               A[0] = a0;
        291.               A[1] = a1;
