ssl/record/ssl3_record.c:1454: error: INTEGER_OVERFLOW_L2
  ([0, 17727] - [max(0, `s->rlayer.rrec.length`), 17728]):unsigned32 by call to `ssl3_cbc_copy_mac`.
Showing all 13 steps of the trace


ssl/record/ssl3_record.c:1358:1: Parameter `s->rlayer.rrec.length`
1356.   }
1357.   
1358. > int dtls1_process_record(SSL *s)
1359.   {
1360.       int i, al;

ssl/record/ssl3_record.c:1454:13: Call
1452.                */
1453.               mac = mac_tmp;
1454.               ssl3_cbc_copy_mac(mac_tmp, rr, mac_size);
                    ^
1455.               rr->length -= mac_size;
1456.           } else {

ssl/record/ssl3_record.c:1281:1: Parameter `md_size`
  1279.   #define CBC_MAC_ROTATE_IN_PLACE
  1280.   
  1281. > void ssl3_cbc_copy_mac(unsigned char *out,
  1282.                          const SSL3_RECORD *rec, unsigned md_size)
  1283.   {

ssl/record/ssl3_record.c:1330:35: Call
  1328.       for (i = scan_start, j = 0; i < rec->orig_len; i++) {
  1329.           unsigned char mac_started = constant_time_ge_8(i, mac_start);
  1330.           unsigned char mac_ended = constant_time_ge_8(i, mac_end);
                                            ^
  1331.           unsigned char b = rec->data[i];
  1332.           rotated_mac[j++] |= b & mac_started & ~mac_ended;

include/internal/constant_time_locl.h:159:1: Parameter `a`
    157.   }
    158.   
    159. > static ossl_inline unsigned char constant_time_ge_8(unsigned int a,
    160.                                                       unsigned int b)
    161.   {

include/internal/constant_time_locl.h:162:28: Call
    160.                                                       unsigned int b)
    161.   {
    162.       return (unsigned char)(constant_time_ge(a, b));
                                      ^
    163.   }
    164.   

include/internal/constant_time_locl.h:153:1: Parameter `a`
      151.   }
      152.   
      153. > static ossl_inline unsigned int constant_time_ge(unsigned int a,
      154.                                                    unsigned int b)
      155.   {

include/internal/constant_time_locl.h:156:13: Call
      154.                                                    unsigned int b)
      155.   {
      156.       return ~constant_time_lt(a, b);
                         ^
      157.   }
      158.   

include/internal/constant_time_locl.h:141:1: <LHS trace>
139.   }
140.   
141. > static ossl_inline unsigned int constant_time_lt(unsigned int a,
142.                                                    unsigned int b)
143.   {

include/internal/constant_time_locl.h:141:1: Parameter `a`
        139.   }
        140.   
        141. > static ossl_inline unsigned int constant_time_lt(unsigned int a,
        142.                                                    unsigned int b)
        143.   {

include/internal/constant_time_locl.h:141:1: <RHS trace>
139.   }
140.   
141. > static ossl_inline unsigned int constant_time_lt(unsigned int a,
142.                                                    unsigned int b)
143.   {

include/internal/constant_time_locl.h:141:1: Parameter `b`
        139.   }
        140.   
        141. > static ossl_inline unsigned int constant_time_lt(unsigned int a,
        142.                                                    unsigned int b)
        143.   {

include/internal/constant_time_locl.h:144:12: Binary operation: ([0, 17727] - [max(0, s->rlayer.rrec.length), 17728]):unsigned32 by call to `ssl3_cbc_copy_mac` 
        142.                                                    unsigned int b)
        143.   {
        144.       return constant_time_msb(a ^ ((a ^ b) | ((a - b) ^ b)));
                          ^
        145.   }
        146.   
