test/ct_test.c:482: error: INTEGER_OVERFLOW_L1
  ([-oo, 0] - 1):unsigned64 by call to `SCT_new_from_base64`.
Showing all 8 steps of the trace


test/ct_test.c:472:5: Array declaration
470.       const char log_id[] = "3xwuwRUAlFJHqWFoMl3cXHlZ6PfG04j8AC4LvT9012Q=";
471.       const uint64_t timestamp = 1;
472.       const char extensions[] = "";
           ^
473.       const char signature[] = "BAMARzBAMiBIL2dRrzXbplQ2vh/WZA89v5pBQpSVkkUwKI+j5"
474.               "eI+BgIhAOTtwNs6xXKx4vXoq2poBlOYfc9BAn3+/6EFUZ2J7b8I";

test/ct_test.c:482:10: Call
480.   
481.       fixture->sct_list = sk_SCT_new_null();
482.       if (!TEST_ptr(sct = SCT_new_from_base64(SCT_VERSION_V1, log_id,
                ^
483.                                               CT_LOG_ENTRY_TYPE_X509, timestamp,
484.                                               extensions, signature)))

crypto/ct/ct_b64.c:63:1: Parameter `extensions_base64->strlen`
  61.   }
  62.   
  63. > SCT *SCT_new_from_base64(unsigned char version, const char *logid_base64,
  64.                            ct_log_entry_type_t entry_type, uint64_t timestamp,
  65.                            const char *extensions_base64,

crypto/ct/ct_b64.c:96:14: Call
  94.       dec = NULL;
  95.   
  96.       declen = ct_base64_decode(extensions_base64, &dec);
                     ^
  97.       if (declen < 0) {
  98.           CTerr(CT_F_SCT_NEW_FROM_BASE64, X509_R_BASE64_DECODE_ERROR);

crypto/ct/ct_b64.c:24:1: <LHS trace>
22.    * the caller. Do not provide a pre-allocated string in |out|.
23.    */
24. > static int ct_base64_decode(const char *in, unsigned char **out)
25.   {
26.       size_t inlen = strlen(in);

crypto/ct/ct_b64.c:24:1: Parameter `in->strlen`
    22.    * the caller. Do not provide a pre-allocated string in |out|.
    23.    */
    24. > static int ct_base64_decode(const char *in, unsigned char **out)
    25.   {
    26.       size_t inlen = strlen(in);

crypto/ct/ct_b64.c:26:5: Assignment
    24.   static int ct_base64_decode(const char *in, unsigned char **out)
    25.   {
    26.       size_t inlen = strlen(in);
              ^
    27.       int outlen, i;
    28.       unsigned char *outbuf = NULL;

crypto/ct/ct_b64.c:50:12: Binary operation: ([-oo, 0] - 1):unsigned64 by call to `SCT_new_from_base64` 
    48.       /* Subtract padding bytes from |outlen|.  Any more than 2 is malformed. */
    49.       i = 0;
    50.       while (in[--inlen] == '=') {
                     ^
    51.           --outlen;
    52.           if (++i > 2)
