commit | 68ede0e457c18d41ce28bc182769544568badbb4 | [log] [tgz] |
---|---|---|
author | Yi-An Chen <chenyian@google.com> | Wed Dec 29 07:06:57 2021 |
committer | Commit Bot <commit-bot@chromium.org> | Fri Jan 07 09:16:18 2022 |
tree | 5ff07db9b34005f3f17a276e6494dca4b2a946fe | |
parent | 23b440c5c11fcd588a2c2ac18c5e44e0f06f3119 [diff] |
trousers: Add boundary check functions Add Trspi_UnloadBlob_KEY_s and Trspi_UnloadBlob_KEY12_s. Avoid cryptohomed crash if the cryptohome.key's content is incorrect. BUG=b:202811484 TEST=Test pattern in b/202811484 cannot crash cryptohomed Change-Id: Ib3cef6570e7c2511c14c614034282bc41b422a08 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/trousers/+/3358228 Reviewed-by: Andrey Pronin <apronin@chromium.org> Tested-by: Yi-An Chen <chenyian@google.com> Commit-Queue: Yi-An Chen <chenyian@google.com>