crypto/asn1_dsa.c:88: error: INTEGER_OVERFLOW_L2
  ([0, +oo] - [`pkt->written`, `pkt->written` + 4]):unsigned64 by call to `WPACKET_allocate_bytes`.
Showing all 10 steps of the trace


crypto/asn1_dsa.c:87:17: Call
85.       if (!WPACKET_start_sub_packet(pkt)
86.               || !WPACKET_put_bytes_u8(pkt, ID_INTEGER)
87.               || !encode_der_length(pkt, cont_len)
                      ^
88.               || !WPACKET_allocate_bytes(pkt, cont_len, &bnbytes)
89.               || !WPACKET_close(pkt))

crypto/asn1_dsa.c:39:1: Parameter `pkt->buf->length`
  37.    * Returns 1 on success or 0 on error.
  38.    */
  39. > int encode_der_length(WPACKET *pkt, size_t cont_len)
  40.   {
  41.       if (cont_len > 0xffff)

crypto/asn1_dsa.c:88:17: Call
86.               || !WPACKET_put_bytes_u8(pkt, ID_INTEGER)
87.               || !encode_der_length(pkt, cont_len)
88.               || !WPACKET_allocate_bytes(pkt, cont_len, &bnbytes)
                      ^
89.               || !WPACKET_close(pkt))
90.           return 0;

crypto/packet.c:16:1: Parameter `pkt->written`
  14.   #define DEFAULT_BUF_SIZE    256
  15.   
  16. > int WPACKET_allocate_bytes(WPACKET *pkt, size_t len, unsigned char **allocbytes)
  17.   {
  18.       if (!WPACKET_reserve_bytes(pkt, len, allocbytes))

crypto/packet.c:18:10: Call
  16.   int WPACKET_allocate_bytes(WPACKET *pkt, size_t len, unsigned char **allocbytes)
  17.   {
  18.       if (!WPACKET_reserve_bytes(pkt, len, allocbytes))
                 ^
  19.           return 0;
  20.   

crypto/packet.c:43:1: <LHS trace>
41.                           : NULL))
42.   
43. > int WPACKET_reserve_bytes(WPACKET *pkt, size_t len, unsigned char **allocbytes)
44.   {
45.       /* Internal API, so should not fail */

crypto/packet.c:43:1: Parameter `pkt->buf->length`
    41.                           : NULL))
    42.   
    43. > int WPACKET_reserve_bytes(WPACKET *pkt, size_t len, unsigned char **allocbytes)
    44.   {
    45.       /* Internal API, so should not fail */

crypto/packet.c:43:1: <RHS trace>
41.                           : NULL))
42.   
43. > int WPACKET_reserve_bytes(WPACKET *pkt, size_t len, unsigned char **allocbytes)
44.   {
45.       /* Internal API, so should not fail */

crypto/packet.c:43:1: Parameter `len`
    41.                           : NULL))
    42.   
    43. > int WPACKET_reserve_bytes(WPACKET *pkt, size_t len, unsigned char **allocbytes)
    44.   {
    45.       /* Internal API, so should not fail */

crypto/packet.c:52:30: Binary operation: ([0, +oo] - [pkt->written, pkt->written + 4]):unsigned64 by call to `WPACKET_allocate_bytes` 
    50.           return 0;
    51.   
    52.       if (pkt->buf != NULL && (pkt->buf->length - pkt->written < len)) {
                                       ^
    53.           size_t newlen;
    54.           size_t reflen;
