Skip to content

Commit 4d7c661

Browse files
author
Mac
committed
add-rustsec-for-onig
1 parent 8178556 commit 4d7c661

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

crates/onig/RUSTSEC-0000-0000.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
```toml
2+
[advisory]
3+
id = "RUSTSEC-0000-0000"
4+
package = "onig"
5+
date = "2025-10-18"
6+
url = "https://github.com/rust-onig/rust-onig/issues/206"
7+
8+
[versions]
9+
patched = []
10+
```
11+
12+
# Pointer Offset Overflow in onig
13+
14+
A pointer offset overflow vulnerability has been discovered in the Region::pos method of the rust-onig library. The method performs an unchecked conversion from usize to isize, which can lead to address calculation overflow in the subsequent ptr::offset operation.
15+
16+
Crash Information:
17+
Error Type: unsafe precondition(s) violated: ptr::offset requires the address calculation to not overflow
18+
Location: region.rs in Region::pos
19+
Root Cause: Conversion of usize values greater than isize::MAX to isize causes integer overflow
20+

0 commit comments

Comments
 (0)