Skip to content

Commit 2b33577

Browse files
committed
Cargo.toml,README.md: Bump version to 0.4.1
Bug fixes: - Fix integer overflow in local function calls by using checked arithmetic for call offsets. Previously, certain call offset values could cause an integer overflow/underflow. - Fix 32-bit ALU operations (ADD32, SUB32, MUL32) to properly zero-extend results. The result is now correctly cast to u32 before extending to u64. - Replace unimplemented!() panics with proper error messages for unsupported instructions (XADD, TAIL_CALL), preventing unexpected panics during execution. - In the x86_64 JIT compiler, fix divisor handling in emit_muldivmod: the JIT now correctly uses the is_reg flag to determine whether the divisor is in a register or an immediate value, rather than checking if imm != 0. (These notes were mostly generated from the Git history by Claude Code.) Signed-off-by: Quentin Monnet <qmo@qmon.net>
1 parent 3aa1e6a commit 2b33577

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# Project metadata
44
name = "rbpf"
5-
version = "0.4.0"
5+
version = "0.4.1"
66
authors = ["Quentin Monnet <qmo@qmon.net>"]
77

88
# Additional metadata for packaging

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ file:
5252

5353
```toml
5454
[dependencies]
55-
rbpf = "0.4.0"
55+
rbpf = "0.4.1"
5656
```
5757

5858
You can also use the development version from this GitHub repository. This
@@ -388,7 +388,7 @@ to your `Cargo.toml` file.
388388

389389
```toml
390390
[dependencies]
391-
rbpf = "0.4.0"
391+
rbpf = "0.4.1"
392392
elf = "0.8.0"
393393
```
394394

@@ -581,7 +581,7 @@ enabled-by-default features.
581581

582582
```toml
583583
[dependencies]
584-
rbpf = { version = "0.4.0", default-features = false }
584+
rbpf = { version = "0.4.1", default-features = false }
585585
```
586586

587587
Note that when using this crate in `no_std` environments, the `jit` module

0 commit comments

Comments
 (0)