ssl/statem/statem_srvr.c:1021: error: INTEGER_OVERFLOW_L2
  ([0, +oo] - [0, 32]):unsigned64 by call to `PACKET_copy_bytes`.
Showing all 10 steps of the trace


ssl/statem/statem_srvr.c:1018:25: Assignment
1016.   
1017.           /* Load the client random and compression list. */
1018.           challenge_len = challenge_len > SSL3_RANDOM_SIZE ? SSL3_RANDOM_SIZE :
                                ^
1019.               challenge_len;
1020.           memset(s->s3->client_random, 0, SSL3_RANDOM_SIZE);

ssl/statem/statem_srvr.c:1018:9: Assignment
1016.   
1017.           /* Load the client random and compression list. */
1018.           challenge_len = challenge_len > SSL3_RANDOM_SIZE ? SSL3_RANDOM_SIZE :
                ^
1019.               challenge_len;
1020.           memset(s->s3->client_random, 0, SSL3_RANDOM_SIZE);

ssl/statem/statem_srvr.c:1021:14: Call
1019.               challenge_len;
1020.           memset(s->s3->client_random, 0, SSL3_RANDOM_SIZE);
1021.           if (!PACKET_copy_bytes(&challenge,
                     ^
1022.                                  s->s3->client_random + SSL3_RANDOM_SIZE -
1023.                                  challenge_len, challenge_len)

ssl/packet_locl.h:335:8: Parameter `len`
  333.    * The caller is responsible for ensuring that |data| can hold |len| bytes.
  334.    */
  335.   __owur static ossl_inline int PACKET_copy_bytes(PACKET *pkt,
                ^
  336.                                                   unsigned char *data,
  337.                                                   size_t len)

ssl/packet_locl.h:342:5: Call
  340.           return 0;
  341.   
  342.       packet_forward(pkt, len);
             ^
  343.   
  344.       return 1;

ssl/packet_locl.h:33:1: <LHS trace>
31.   
32.   /* Internal unchecked shorthand; don't use outside this file. */
33. > static ossl_inline void packet_forward(PACKET *pkt, size_t len)
34.   {
35.       pkt->curr += len;

ssl/packet_locl.h:33:1: Parameter `pkt->remaining`
    31.   
    32.   /* Internal unchecked shorthand; don't use outside this file. */
    33. > static ossl_inline void packet_forward(PACKET *pkt, size_t len)
    34.   {
    35.       pkt->curr += len;

ssl/packet_locl.h:33:1: <RHS trace>
31.   
32.   /* Internal unchecked shorthand; don't use outside this file. */
33. > static ossl_inline void packet_forward(PACKET *pkt, size_t len)
34.   {
35.       pkt->curr += len;

ssl/packet_locl.h:33:1: Parameter `len`
    31.   
    32.   /* Internal unchecked shorthand; don't use outside this file. */
    33. > static ossl_inline void packet_forward(PACKET *pkt, size_t len)
    34.   {
    35.       pkt->curr += len;

ssl/packet_locl.h:36:5: Binary operation: ([0, +oo] - [0, 32]):unsigned64 by call to `PACKET_copy_bytes` 
    34.   {
    35.       pkt->curr += len;
    36.       pkt->remaining -= len;
              ^
    37.   }
    38.   
