crypto/txt_db/txt_db.c:120: error: BUFFER_OVERRUN_L1
  Offset: -1 Size: [1, 2147483644].
Showing all 7 steps of the trace


crypto/txt_db/txt_db.c:104:5: <Offset trace>
102.       add = (num + 1) * sizeof(char *);
103.       buf->data[size - 1] = '\0';
104.       offset = 0;
           ^
105.       for (;;) {
106.           if (offset != 0) {

crypto/txt_db/txt_db.c:104:5: Assignment
102.       add = (num + 1) * sizeof(char *);
103.       buf->data[size - 1] = '\0';
104.       offset = 0;
           ^
105.       for (;;) {
106.           if (offset != 0) {

crypto/txt_db/txt_db.c:119:9: Assignment
117.               continue;
118.           i = strlen(&(buf->data[offset]));
119.           offset += i;
               ^
120.           if (buf->data[offset - 1] != '\n')
121.               continue;

crypto/txt_db/txt_db.c:83:10: <Length trace>
81.       if ((buf = BUF_MEM_new()) == NULL)
82.           goto err;
83.       if (!BUF_MEM_grow(buf, size))
               ^
84.           goto err;
85.   

crypto/txt_db/txt_db.c:83:10: Call
81.       if ((buf = BUF_MEM_new()) == NULL)
82.           goto err;
83.       if (!BUF_MEM_grow(buf, size))
               ^
84.           goto err;
85.   

crypto/buffer/buffer.c:122:1: Parameter `*str->data`
  120.   }
  121.   
  122. > size_t BUF_MEM_grow(BUF_MEM *str, size_t len)
  123.   {
  124.       char *ret;

crypto/txt_db/txt_db.c:120:13: Array access: Offset: -1 Size: [1, 2147483644]
118.           i = strlen(&(buf->data[offset]));
119.           offset += i;
120.           if (buf->data[offset - 1] != '\n')
                   ^
121.               continue;
122.           else {
