aboutsummaryrefslogtreecommitdiffstats
path: root/package/network
diff options
context:
space:
mode:
authorPetr Štetiar <ynezz@true.cz>2022-08-24 13:10:37 +0200
committerJo-Philipp Wich <jo@mein.io>2022-08-25 11:05:20 +0200
commit8a9733ee0d0fc3fe6667ece1bf43956692cba155 (patch)
treeae3f5d5f7fdf34a8a317aa75a51b6f27b3602910 /package/network
parent8f4a2e42341ef1beed8f096511095cf57d40338b (diff)
downloadupstream-8a9733ee0d0fc3fe6667ece1bf43956692cba155.tar.gz
upstream-8a9733ee0d0fc3fe6667ece1bf43956692cba155.tar.bz2
upstream-8a9733ee0d0fc3fe6667ece1bf43956692cba155.zip
rpcd: bump version to 2022-08-24
gcc 10 with -O2 reports following: In function ‘strncpy’, inlined from ‘rpc_sys_packagelist’ at /opt/devel/openwrt/c-projects/rpcd/sys.c:244:4: /usr/include/x86_64-linux-gnu/bits/string_fortified.h:106:10: error: ‘__builtin_strncpy’ specified bound 128 equals destination size [-Werror=stringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In function ‘strncpy’, inlined from ‘rpc_sys_packagelist’ at /opt/devel/openwrt/c-projects/rpcd/sys.c:227:4: /usr/include/x86_64-linux-gnu/bits/string_fortified.h:106:10: error: ‘__builtin_strncpy’ specified bound 128 equals destination size [-Werror=stringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Since it is not possible to avoid truncation by strncpy, it is necessary to make sure the result of strncpy is properly NUL-terminated and the NUL must be inserted explicitly, after strncpy has returned. References: #10442 Reported-by: Alexey Smirnov <s.alexey@gmail.com> Signed-off-by: Petr Štetiar <ynezz@true.cz> (cherry picked from commit 34ddd2e545f068e4684ecce98c1da3a6c7c9b04a)
Diffstat (limited to 'package/network')
0 files changed, 0 insertions, 0 deletions