richfitz / thor

:zap::computer::zap: R client for the Lightning Memory-Mapped Database

Home Page:https://richfitz.github.io/thor

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fortified string checks report out-of-bounds write

richfitz opened this issue · comments

In function ‘memcpy’,
    inlined from ‘mdb_node_add’ at lmdb/mdb.c:8184:4:
/usr/include/x86_64-linux-gnu/bits/string_fortified.h:34:10: warning: writing 8 bytes into a region of size 1 [-Wstringop-overflow=]
   34 |   return __builtin___memcpy_chk (__dest, __src, __len, __bos0 (__dest));
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In function ‘memcpy’,
    inlined from ‘mdb_node_add’ at lmdb/mdb.c:8178:5:
/usr/include/x86_64-linux-gnu/bits/string_fortified.h:34:10: warning: writing 8 bytes into a region of size 1 [-Wstringop-overflow=]
   34 |   return __builtin___memcpy_chk (__dest, __src, __len, __bos0 (__dest));
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Requires very new gcc-10