]> 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>
Mon, 8 Aug 2022 16:50:43 +0000 (12:50 -0400)
commit2dd83b3f0507fc7bc64b908fb88f285a3b9663c8
tree31c9d996970bce2a9170031f3f79c1cacc6dccd7
parent1b0a4974c5004216daf4a2ac4375074ce56bc55b
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
MFC after: 1 day
Differential Revision: https://reviews.freebsd.org/D35907
contrib/lib9p/pack.c