mirror of
https://github.com/bytecodealliance/wasm-micro-runtime.git
synced 2025-11-28 10:31:05 +00:00
Compare commits
3 Commits
main
...
WAMR-2.4.2
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6450d87299 | ||
|
|
87fb38256b | ||
|
|
9530e4a310 |
|
|
@ -1,3 +1,19 @@
|
|||
## WAMR-2.4.2
|
||||
|
||||
### Breaking Changes
|
||||
|
||||
### New Features
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
- CVE-2025-58749. Fix a potential hang issue in LLVMJIT mode
|
||||
|
||||
### Enhancements
|
||||
|
||||
### Others
|
||||
|
||||
---
|
||||
|
||||
## WAMR-2.4.1
|
||||
|
||||
### Breaking Changes
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ endif()
|
|||
|
||||
set(WAMR_VERSION_MAJOR 2)
|
||||
set(WAMR_VERSION_MINOR 4)
|
||||
set(WAMR_VERSION_PATCH 1)
|
||||
set(WAMR_VERSION_PATCH 2)
|
||||
|
||||
message("-- WAMR version: ${WAMR_VERSION_MAJOR}.${WAMR_VERSION_MINOR}.${WAMR_VERSION_PATCH}")
|
||||
|
||||
|
|
|
|||
|
|
@ -1486,7 +1486,7 @@ LLVMValueRef
|
|||
check_bulk_memory_overflow(AOTCompContext *comp_ctx, AOTFuncContext *func_ctx,
|
||||
LLVMValueRef offset, LLVMValueRef bytes)
|
||||
{
|
||||
LLVMValueRef maddr, max_addr, cmp, cmp1;
|
||||
LLVMValueRef maddr, max_addr, cmp, cmp1, offset1;
|
||||
LLVMValueRef mem_base_addr;
|
||||
LLVMBasicBlockRef block_curr = LLVMGetInsertBlock(comp_ctx->builder);
|
||||
LLVMBasicBlockRef check_succ;
|
||||
|
|
@ -1539,8 +1539,18 @@ check_bulk_memory_overflow(AOTCompContext *comp_ctx, AOTFuncContext *func_ctx,
|
|||
if (mem_data_size > 0 && mem_offset + mem_len <= mem_data_size) {
|
||||
/* inside memory space */
|
||||
/* maddr = mem_base_addr + moffset */
|
||||
/* Perform zero extension in advance to avoid LLVMBuildInBoundsGEP2
|
||||
* interpreting a negative address due to sign extension when
|
||||
* mem_offset >= 2GiB */
|
||||
if (comp_ctx->pointer_size == sizeof(uint64)) {
|
||||
offset1 = I64_CONST(mem_offset);
|
||||
}
|
||||
else {
|
||||
offset1 = I32_CONST((uint32)mem_offset);
|
||||
}
|
||||
CHECK_LLVM_CONST(offset1);
|
||||
if (!(maddr = LLVMBuildInBoundsGEP2(comp_ctx->builder, INT8_TYPE,
|
||||
mem_base_addr, &offset, 1,
|
||||
mem_base_addr, &offset1, 1,
|
||||
"maddr"))) {
|
||||
aot_set_last_error("llvm build add failed.");
|
||||
goto fail;
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@
|
|||
/* clang-format off */
|
||||
#define WAMR_VERSION_MAJOR 2
|
||||
#define WAMR_VERSION_MINOR 4
|
||||
#define WAMR_VERSION_PATCH 1
|
||||
#define WAMR_VERSION_PATCH 2
|
||||
/* clang-format on */
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user