]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
lib9p: Remove potential buffer overwrite in l9p_puqids()
authorKonrad Sewiłło-Jopek <kjopek@gmail.com>
Mon, 8 Aug 2022 16:25:48 +0000 (12:25 -0400)
committerMark Johnston <markj@FreeBSD.org>
Tue, 9 Aug 2022 13:33:14 +0000 (09:33 -0400)
commitc536045c51da78a85138e963d3b7e13a547713c9
tree83b07a6dfbf682bfc6938dff7bc7c0344272ecd1
parent6360ccdea077b7d41b0b309fe2a11eb4cc0376a6
lib9p: Remove potential buffer overwrite in l9p_puqids()

Structure l9p_f_wralk reserves at most L9P_MAX_WELEM entries
and that number actually set the maximum we can safely use.

PR: 265385
Reviewed by: markj

(cherry picked from commit 2dd83b3f0507fc7bc64b908fb88f285a3b9663c8)
contrib/lib9p/pack.c