aboutsummaryrefslogtreecommitdiffstats
path: root/include/kernel-5.10
diff options
context:
space:
mode:
authorPetr Štetiar <ynezz@true.cz>2022-08-24 13:10:37 +0200
committerPetr Štetiar <ynezz@true.cz>2022-08-25 06:59:41 +0200
commit34ddd2e545f068e4684ecce98c1da3a6c7c9b04a (patch)
treeac4feafb667bc40ad0938b8999daf6fc384488cd /include/kernel-5.10
parentfe86b2ffaaf6059250e3ba0a9e1436312415e23f (diff)
downloadupstream-34ddd2e545f068e4684ecce98c1da3a6c7c9b04a.tar.gz
upstream-34ddd2e545f068e4684ecce98c1da3a6c7c9b04a.tar.bz2
upstream-34ddd2e545f068e4684ecce98c1da3a6c7c9b04a.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>
Diffstat (limited to 'include/kernel-5.10')
0 files changed, 0 insertions, 0 deletions