[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Guile-commits] 01/09: replace use of uninitialized variable size in res
From: |
Andy Wingo |
Subject: |
[Guile-commits] 01/09: replace use of uninitialized variable size in reset_literal_pool |
Date: |
Mon, 22 Apr 2024 09:21:39 -0400 (EDT) |
wingo pushed a commit to branch main
in repository guile.
commit 6cdea3995a57d4b63120827a56ba57ebb77ae00e
Author: Luke Nihlen <luke.nihlen@gmail.com>
AuthorDate: Mon Jan 10 20:32:00 2022 -0500
replace use of uninitialized variable size in reset_literal_pool
---
lightening/lightening.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lightening/lightening.c b/lightening/lightening.c
index ad990eb01..ebd857848 100644
--- a/lightening/lightening.c
+++ b/lightening/lightening.c
@@ -1328,7 +1328,7 @@ static void
reset_literal_pool(jit_state_t *_jit, struct jit_literal_pool *pool)
{
pool->deadline = _jit->limit - _jit->start;
- memset(pool->entries, 0, sizeof(pool->entries[0]) * pool->size);
+ memset(pool->entries, 0, sizeof(pool->entries[0]) * pool->capacity);
pool->size = 0;
}
- [Guile-commits] branch main updated (112b617f5 -> e2fad2025), Andy Wingo, 2024/04/22
- [Guile-commits] 03/09: Merge branch 'topic/fix-reset-literal-pool' into 'main', Andy Wingo, 2024/04/22
- [Guile-commits] 01/09: replace use of uninitialized variable size in reset_literal_pool,
Andy Wingo <=
- [Guile-commits] 08/09: Fix compilation when SCM_I_PTHREAD_ONCE_INIT is not aggregate, Andy Wingo, 2024/04/22
- [Guile-commits] 05/09: aarch64: Fix swap_atomic retry, Andy Wingo, 2024/04/22
- [Guile-commits] 09/09: Merge Lightening update branch, Andy Wingo, 2024/04/22
- [Guile-commits] 06/09: aarch64: Add support for LSE atomics, Andy Wingo, 2024/04/22
- [Guile-commits] 04/09: Fix CI, Andy Wingo, 2024/04/22
- [Guile-commits] 02/09: set size to known value before init, Andy Wingo, 2024/04/22
- [Guile-commits] 07/09: Merge remote-tracking branch 'lightening/main', Andy Wingo, 2024/04/22