commit | 2ecea430fbb4e7e2de7fc6fd3fddd59f138019fc | [log] [tgz] |
---|---|---|
author | Antonio de Angelis <Antonio.deAngelis@arm.com> | Fri Jul 05 11:02:25 2024 +0200 |
committer | Antonio de Angelis <Antonio.deAngelis@arm.com> | Fri Sep 27 17:01:13 2024 +0200 |
tree | 470a4349ec8709e1e0513c99a2e14ca274f6414f | |
parent | fbcdc69b794d9b612f4556cba347a860d6a7f28f [diff] |
Crypto: Prevent the scratch allocator from overflowing If the requested_size from the scratch allocator is greater than 0xfffffffc, the align macro overflows without failing allocation thus allowing out-of-bounds writes in the Crypto partition memory. Signed-off-by: Antonio de Angelis <antonio.deangelis@arm.com> Change-Id: Ic218fea8238ecd3e8d146586d2c413386870d580