diff options
author | Dmitry Valter <d-valter@yandex-team.com> | 2024-01-05 14:28:08 +0000 |
---|---|---|
committer | Damjan Marion <dmarion@0xa5.net> | 2024-01-19 12:37:49 +0000 |
commit | 8263888f463b566e77e8243763e05c35d20bb4d7 (patch) | |
tree | 302e307694b9a8e410c60a6f61b59273cbde345a /src/vppinfra/test_time.c | |
parent | c60266d1ea9604f4651092d79bed8ec0b571544a (diff) |
vppinfra: fix vec_prepend use-after-free
Don't access free'd memory in vec_prepend.
Don't allow prepend when v1 == v2 as it also causes a use-after-free.
Found via ASAN.
Type: fix
Signed-off-by: Dmitry Valter <d-valter@yandex-team.com>
Change-Id: I21f8422c007d07d40d237e873b84c042be1fe8e8
Diffstat (limited to 'src/vppinfra/test_time.c')
0 files changed, 0 insertions, 0 deletions