diff options
author | emaste <emaste@FreeBSD.org> | 2017-05-15 14:41:47 +0000 |
---|---|---|
committer | emaste <emaste@FreeBSD.org> | 2017-05-15 14:41:47 +0000 |
commit | 0cb6596133162e0cb090e434e03e02376fc66ec2 (patch) | |
tree | 394d62e837d68b5a2aa358077770775904e17783 /usr.bin | |
parent | 054f6b7d3a6ec9d195b41c4d19935754645d676a (diff) | |
download | FreeBSD-src-0cb6596133162e0cb090e434e03e02376fc66ec2.zip FreeBSD-src-0cb6596133162e0cb090e434e03e02376fc66ec2.tar.gz |
MFC r315685: tighten buffer bounds in imgact_binmisc_populate_interp
We must ensure there's space for the terminating null in the temporary
buffer in imgact_binmisc_populate_interp().
Note that there's no buffer overflow here because xbe->xbe_interpreter's
length and null termination is checked in imgact_binmisc_add_entry()
before imgact_binmisc_populate_interp() is called. However, the latter
should correctly enforce its own bounds.
Sponsored by: The FreeBSD Foundation
Diffstat (limited to 'usr.bin')
0 files changed, 0 insertions, 0 deletions