crypto/ec/ecp_smpl.c:698: error: BUFFER_OVERRUN_L3
  Offset added: [8, +oo] Size: [0, 536870848] by call to `BN_mod_sub_quick`.
Showing all 18 steps of the trace


crypto/ec/ecp_smpl.c:655:14: Call
653.       /* n1, n2 */
654.       if (b->Z_is_one) {
655.           if (!BN_copy(n1, a->X))
                    ^
656.               goto end;
657.           if (!BN_copy(n2, a->Y))

crypto/bn/bn_lib.c:323:1: Parameter `a->top`
  321.   }
  322.   
  323. > BIGNUM *BN_copy(BIGNUM *a, const BIGNUM *b)
  324.   {
  325.       bn_check_top(b);

crypto/ec/ecp_smpl.c:698:10: Call
696.   
697.       /* n5, n6 */
698.       if (!BN_mod_sub_quick(n5, n1, n3, p))
                ^
699.           goto end;
700.       if (!BN_mod_sub_quick(n6, n2, n4, p))

crypto/bn/bn_mod.c:62:1: Parameter `*r->d`
  60.    * less than m
  61.    */
  62. > int BN_mod_sub_quick(BIGNUM *r, const BIGNUM *a, const BIGNUM *b,
  63.                        const BIGNUM *m)
  64.   {

crypto/bn/bn_mod.c:65:10: Call
  63.                        const BIGNUM *m)
  64.   {
  65.       if (!BN_sub(r, a, b))
                 ^
  66.           return 0;
  67.       if (r->neg)

crypto/bn/bn_add.c:150:1: Parameter `*r->d`
    148.   }
    149.   
    150. > int BN_sub(BIGNUM *r, const BIGNUM *a, const BIGNUM *b)
    151.   {
    152.       int max;

crypto/bn/bn_add.c:183:14: Call
    181.   
    182.       if (add) {
    183.           if (!BN_uadd(r, a, b))
                        ^
    184.               return 0;
    185.           r->neg = neg;

crypto/bn/bn_add.c:58:1: Parameter `*r->d`
      56.   
      57.   /* unsigned add of b to a */
      58. > int BN_uadd(BIGNUM *r, const BIGNUM *a, const BIGNUM *b)
      59.   {
      60.       int max, min, dif;

crypto/bn/bn_add.c:78:9: Call
      76.       dif = max - min;
      77.   
      78.       if (bn_wexpand(r, max + 1) == NULL)
                    ^
      79.           return 0;
      80.   

crypto/bn/bn_lib.c:948:1: Parameter `*a->d`
        946.   }
        947.   
        948. > BIGNUM *bn_wexpand(BIGNUM *a, int words)
        949.   {
        950.       return (words <= a->dmax) ? a : bn_expand2(a, words);

crypto/bn/bn_lib.c:950:37: Call
        948.   BIGNUM *bn_wexpand(BIGNUM *a, int words)
        949.   {
        950.       return (words <= a->dmax) ? a : bn_expand2(a, words);
                                                   ^
        951.   }
        952.   

crypto/bn/bn_lib.c:284:1: Parameter `*b->d`
          282.    */
          283.   
          284. > BIGNUM *bn_expand2(BIGNUM *b, int words)
          285.   {
          286.       bn_check_top(b);

crypto/bn/bn_lib.c:289:23: Call
          287.   
          288.       if (words > b->dmax) {
          289.           BN_ULONG *a = bn_expand_internal(b, words);
                                       ^
          290.           if (!a)
          291.               return NULL;

crypto/bn/bn_lib.c:246:1: <Offset 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 = NULL;

crypto/bn/bn_lib.c:246:1: Parameter `b->top`
            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 = 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 = 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 = NULL;

crypto/bn/bn_lib.c:271:9: Array access: Offset added: [8, +oo] Size: [0, 536870848] by call to `BN_mod_sub_quick` 
            269.       assert(b->top <= words);
            270.       if (b->top > 0)
            271.           memcpy(a, b->d, sizeof(*a) * b->top);
                           ^
            272.   
            273.       return a;
