mod_http_cache gcc8+ strncpy truncated

  • OS - Debian 10 Buster
  • FS - 1.10.1
  • GCC - gcc version 8.3.0 (Debian 8.3.0-6)
  • file - ./src/mod/applications/mod_http_cache/mod_http_cache.c

#1 :988

mod_http_cache.c:988
+ #pragma GCC diagnostic push
+ #pragma GCC diagnostic ignored "-Wstringop-truncation"
strncpy(uuid_dir, uuid_str, 2);

#2 :276

mod_http_cache.c:276
 - strncpy(domain_buf,start, domain_buf_len);
 + strncpy(domain_buf,start, sizeof(domain_buf) - 1 );
  • freeswitch/troubleshooting/mod_http_cache_strncpy_make_error.txt
  • Последние изменения: 2020/11/02