Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.openwrt.org/project/libubox.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/sh
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@nbd.name>2022-05-15 14:42:56 +0300
committerFelix Fietkau <nbd@nbd.name>2022-05-15 14:42:58 +0300
commitd2223ef9da7172a84d1508733dc58840e1381e3c (patch)
tree412d4bd8a447290216975fc0c85156bbaf7b2845 /sh
parentcfa372ff8aed8257465adb5445f43656ace2d615 (diff)
blobmsg: work around false positive gcc -Warray-bounds warnings
Using the return value of blobmsg_name as input argument to strcpy can lead to warnings like these: error: 'strcpy' offset 6 from the object at 'cur' is out of the bounds of referenced subobject 'name' with type 'uint8_t[]' {aka 'unsigned char[]'} at offset 6 [-Werror=array-bounds] Fix this by replacing hdr->name with the equivalent hdr + 1 Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'sh')
0 files changed, 0 insertions, 0 deletions