r-lidar / rlas

R package to read and write las and laz files used to store LiDAR data
https://cran.r-project.org/package=rlas
GNU General Public License v3.0
34 stars 14 forks source link

gcc-12 -Wstringop-truncation #61

Closed Jean-Romain closed 1 year ago

Jean-Romain commented 1 year ago

From CRAN with gcc-12

Found the following significant warnings:
  /usr/include/bits/stdio2.h:54:35: warning: ‘int __builtin___snprintf_chk(char*, long unsigned int, int, long unsigned int, const char*, ...)’ specified bound 4096 exceeds destination size 512 [-Wstringop-overflow=]
  ./LASlib/lasdefinitions.hpp:673:12: warning: ‘char* __builtin_strncpy(char*, const char*, long unsigned int)’ specified bound 16 equals destination size [-Wstringop-truncation]