aboutsummaryrefslogtreecommitdiff
path: root/scripts/generate_rust_analyzer.py
diff options
context:
space:
mode:
authorDaniil Dulov <[email protected]>2024-02-19 14:39:03 +0000
committerChristian Brauner <[email protected]>2024-02-20 09:51:21 +0100
commit6ea38e2aeb72349cad50e38899b0ba6fbcb2af3d (patch)
tree8509e705b8e993b3ae8711ee7bf56e7802332019 /scripts/generate_rust_analyzer.py
parentbfacaf71a1482d936804213a3ffa6de73558280e (diff)
afs: Increase buffer size in afs_update_volume_status()
The max length of volume->vid value is 20 characters. So increase idbuf[] size up to 24 to avoid overflow. Found by Linux Verification Center (linuxtesting.org) with SVACE. [DH: Actually, it's 20 + NUL, so increase it to 24 and use snprintf()] Fixes: d2ddc776a458 ("afs: Overhaul volume and server record caching and fileserver rotation") Signed-off-by: Daniil Dulov <[email protected]> Signed-off-by: David Howells <[email protected]> Link: https://lore.kernel.org/r/[email protected]/ # v1 Link: https://lore.kernel.org/r/[email protected]/ # v2 Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Christian Brauner <[email protected]>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions