ssl/statem/statem_srvr.c:1142: 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:1139:25: Assignment
1137.   
1138.           /* Load the client random */
1139.           challenge_len = challenge_len > SSL3_RANDOM_SIZE ? SSL3_RANDOM_SIZE :
                                ^
1140.               challenge_len;
1141.           memset(s->s3->client_random, 0, SSL3_RANDOM_SIZE);

ssl/statem/statem_srvr.c:1139:9: Assignment
1137.   
1138.           /* Load the client random */
1139.           challenge_len = challenge_len > SSL3_RANDOM_SIZE ? SSL3_RANDOM_SIZE :
                ^
1140.               challenge_len;
1141.           memset(s->s3->client_random, 0, SSL3_RANDOM_SIZE);

ssl/statem/statem_srvr.c:1142:14: Call
1140.               challenge_len;
1141.           memset(s->s3->client_random, 0, SSL3_RANDOM_SIZE);
1142.           if (!PACKET_copy_bytes(&challenge,
                     ^
1143.                                  s->s3->client_random + SSL3_RANDOM_SIZE -
1144.                                  challenge_len, challenge_len)) {

ssl/packet_locl.h:373:8: Parameter `len`
  371.    * The caller is responsible for ensuring that |data| can hold |len| bytes.
  372.    */
  373.   __owur static ossl_inline int PACKET_copy_bytes(PACKET *pkt,
                ^
  374.                                                   unsigned char *data,
  375.                                                   size_t len)

ssl/packet_locl.h:380:5: Call
  378.           return 0;
  379.   
  380.       packet_forward(pkt, len);
             ^
  381.   
  382.       return 1;

ssl/packet_locl.h:80:1: <LHS trace>
78.   
79.   /* Internal unchecked shorthand; don't use outside this file. */
80. > static ossl_inline void packet_forward(PACKET *pkt, size_t len)
81.   {
82.       pkt->curr += len;

ssl/packet_locl.h:80:1: Parameter `pkt->remaining`
    78.   
    79.   /* Internal unchecked shorthand; don't use outside this file. */
    80. > static ossl_inline void packet_forward(PACKET *pkt, size_t len)
    81.   {
    82.       pkt->curr += len;

ssl/packet_locl.h:80:1: <RHS trace>
78.   
79.   /* Internal unchecked shorthand; don't use outside this file. */
80. > static ossl_inline void packet_forward(PACKET *pkt, size_t len)
81.   {
82.       pkt->curr += len;

ssl/packet_locl.h:80:1: Parameter `len`
    78.   
    79.   /* Internal unchecked shorthand; don't use outside this file. */
    80. > static ossl_inline void packet_forward(PACKET *pkt, size_t len)
    81.   {
    82.       pkt->curr += len;

ssl/packet_locl.h:83:5: Binary operation: ([0, +oo] - [0, 32]):unsigned64 by call to `PACKET_copy_bytes` 
    81.   {
    82.       pkt->curr += len;
    83.       pkt->remaining -= len;
              ^
    84.   }
    85.   
