diff options
author | mav <mav@FreeBSD.org> | 2016-10-12 05:36:55 +0000 |
---|---|---|
committer | mav <mav@FreeBSD.org> | 2016-10-12 05:36:55 +0000 |
commit | ce668162702e9724eab8b06651a0d4e3c2d7ff93 (patch) | |
tree | e9bff63ece297cfdb73915cd7f8cbb83e195363a /contrib/libc++/src/ios.cpp | |
parent | 5f07a9ef5f014514c3e8e5a53927ef83b2f87aba (diff) | |
download | FreeBSD-src-ce668162702e9724eab8b06651a0d4e3c2d7ff93.zip FreeBSD-src-ce668162702e9724eab8b06651a0d4e3c2d7ff93.tar.gz |
MFC r305194: MFV r302642:
6876 Stack corruption after importing a pool with a too-long name
illumos/illumos-gate@c971037baa5d64dfecf6d87ed602fc3116ebec41
https://github.com/illumos/illumos-gate/commit/c971037baa5d64dfecf6d87ed602fc3116ebec41
https://www.illumos.org/issues/6876
Calling dsl_dataset_name on a dataset with a 256 byte buffer is asking for
trouble. We should check every dataset on import, using a 1024 byte buffer and
checking each time to see if the dataset's new name is longer than 256 bytes.
Reviewed by: Prakash Surya <prakash.surya@delphix.com>
Reviewed by: Dan Kimmel <dan.kimmel@delphix.com>
Reviewed by: George Wilson <george.wilson@delphix.com>
Reviewed by: Yuri Pankov <yuri.pankov@nexenta.com>
Approved by: Richard Lowe <richlowe@richlowe.net>
Author: Paul Dagnelie <pcd@delphix.com>
Diffstat (limited to 'contrib/libc++/src/ios.cpp')
0 files changed, 0 insertions, 0 deletions