crypto/asn1/a_time.c:238: error: BUFFER_OVERRUN_L2
  Offset: [6, 9] Size: 9.
Showing all 7 steps of the trace


crypto/asn1/a_time.c:80:5: <Offset trace>
78.       static const int mdays[12] = { 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 };
79.       char *a;
80.       int n, i, i2, l, o, min_l = 11, strict = 0, end = 6, btz = 5, md;
          ^
81.       struct tm tmp;
82.   #if defined(CHARSET_EBCDIC)

crypto/asn1/a_time.c:80:5: Assignment
78.       static const int mdays[12] = { 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 };
79.       char *a;
80.       int n, i, i2, l, o, min_l = 11, strict = 0, end = 6, btz = 5, md;
          ^
81.       struct tm tmp;
82.   #if defined(CHARSET_EBCDIC)

crypto/asn1/a_time.c:237:18: Assignment
235.                   goto err;
236.               n = (n * 10) + a[o] - num_zero;
237.               i2 = (d->type == V_ASN1_UTCTIME) ? i + 1 : i;
                        ^
238.               if ((n < min[i2]) || (n > max[i2]))
239.                   goto err;

crypto/asn1/a_time.c:237:13: Assignment
235.                   goto err;
236.               n = (n * 10) + a[o] - num_zero;
237.               i2 = (d->type == V_ASN1_UTCTIME) ? i + 1 : i;
                   ^
238.               if ((n < min[i2]) || (n > max[i2]))
239.                   goto err;

crypto/asn1/a_time.c:76:5: <Length trace>
74.   int asn1_time_to_tm(struct tm *tm, const ASN1_TIME *d)
75.   {
76.       static const int min[9] = { 0, 0, 1, 1, 0, 0, 0, 0, 0 };
          ^
77.       static const int max[9] = { 99, 99, 12, 31, 23, 59, 59, 12, 59 };
78.       static const int mdays[12] = { 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 };

crypto/asn1/a_time.c:76:5: Array declaration
74.   int asn1_time_to_tm(struct tm *tm, const ASN1_TIME *d)
75.   {
76.       static const int min[9] = { 0, 0, 1, 1, 0, 0, 0, 0, 0 };
          ^
77.       static const int max[9] = { 99, 99, 12, 31, 23, 59, 59, 12, 59 };
78.       static const int mdays[12] = { 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 };

crypto/asn1/a_time.c:238:22: Array access: Offset: [6, 9] Size: 9
236.               n = (n * 10) + a[o] - num_zero;
237.               i2 = (d->type == V_ASN1_UTCTIME) ? i + 1 : i;
238.               if ((n < min[i2]) || (n > max[i2]))
                            ^
239.                   goto err;
240.               /* if tm is NULL, no need to adjust */
