repo stringclasses 1
value | created_at stringlengths 20 20 | instance_id stringlengths 19 21 | test_patch stringlengths 264 4.57M | hints_text stringlengths 0 30.7k | patch stringlengths 340 7.55M | issue_numbers sequencelengths 1 3 | pull_number int64 19 1.17k | problem_statement stringlengths 84 10.2k | version stringclasses 13
values | base_commit stringlengths 40 40 | environment_setup_commit stringclasses 13
values |
|---|---|---|---|---|---|---|---|---|---|---|---|
rust-lang/regex | 2024-03-04T12:38:54Z | rust-lang__regex-1170 | diff --git a/regex-automata/src/nfa/thompson/compiler.rs b/regex-automata/src/nfa/thompson/compiler.rs
--- a/regex-automata/src/nfa/thompson/compiler.rs
+++ b/regex-automata/src/nfa/thompson/compiler.rs
@@ -1928,6 +1930,11 @@ mod tests {
State::Sparse(SparseTransitions { transitions })
}
+ fn s_look(... | diff --git a/regex-automata/src/nfa/thompson/compiler.rs b/regex-automata/src/nfa/thompson/compiler.rs
--- a/regex-automata/src/nfa/thompson/compiler.rs
+++ b/regex-automata/src/nfa/thompson/compiler.rs
@@ -961,10 +961,12 @@ impl Compiler {
// for all matches. When an unanchored prefix is not added, then the
... | [
"1169"
] | 1,170 | Valid prefix search (with ^) goes into dead state
#### What version of regex are you using?
regex-automata = "0.4.5"
#### Describe the bug at a high level.
I'm trying to do a prefix search by adding a `^` at the beginning of my pattern. I'm searching right-to-left, but the dfa is failing to find a match and en... | 1.10 | 10fe722a3fcfdc17068b21f3262189cc52227bb5 | 10fe722a3fcfdc17068b21f3262189cc52227bb5 | |
rust-lang/regex | 2024-01-19T21:16:11Z | rust-lang__regex-1154 | diff --git a/regex-automata/src/util/search.rs b/regex-automata/src/util/search.rs
--- a/regex-automata/src/util/search.rs
+++ b/regex-automata/src/util/search.rs
@@ -1966,4 +1971,23 @@ mod tests {
let expected_size = 3 * core::mem::size_of::<usize>();
assert_eq!(expected_size, core::mem::size_of::<Ma... | diff --git a/CHANGELOG.md b/CHANGELOG.md
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,12 +1,14 @@
1.10.3 (TBD)
============
This is a new patch release that fixes the feature configuration of optional
-dependencies.
+dependencies, and fixes an unsound use of bounds check elision.
Bug fixes:
* [BUG #1147](https:... | [
"1154"
] | 1,154 | Make `Input::new` guard against incorrect `AsRef` implementations
Currently `Input::new` calls `haystack.as_ref()` twice, once to get the actual `haystack` slice and the second time to get its length. It makes the assumption that the second call will return the same slice, but malicious implementations of `AsRef` can r... | 1.10 | 027eebd6fde307076603530c999afcfd271bb037 | 10fe722a3fcfdc17068b21f3262189cc52227bb5 | |
rust-lang/regex | 2023-10-16T14:23:23Z | rust-lang__regex-1111 | diff --git a/testdata/regression.toml b/testdata/regression.toml
--- a/testdata/regression.toml
+++ b/testdata/regression.toml
@@ -813,3 +813,18 @@ name = "hir-optimization-out-of-order-class"
regex = '^[[:alnum:]./-]+$'
haystack = "a-b"
matches = [[0, 3]]
+
+# This is a regression test for an improper reverse suffi... | diff --git a/regex-automata/src/meta/strategy.rs b/regex-automata/src/meta/strategy.rs
--- a/regex-automata/src/meta/strategy.rs
+++ b/regex-automata/src/meta/strategy.rs
@@ -1167,21 +1167,34 @@ impl ReverseSuffix {
return Err(core);
}
let kind = core.info.config().get_match_kind();
- ... | [
"1110"
] | 1,111 | broadening of reverse suffix optimization has led to incorrect matches
Specifically, this program succeeds in `regex 1.9.x` but fails in `regex 1.10.1`:
```rust
fn main() -> anyhow::Result<()> {
let re = regex::Regex::new(r"(\\N\{[^}]+})|([{}])").unwrap();
let hay = r#"hiya \N{snowman} bye"#;
let mat... | 1.10 | e7bd19dd3ebf4b1a861275f0353202bf93a39ab1 | 10fe722a3fcfdc17068b21f3262189cc52227bb5 | |
rust-lang/regex | 2023-10-06T15:45:29Z | rust-lang__regex-1098 | "diff --git a/Cargo.toml b/Cargo.toml\n--- a/Cargo.toml\n+++ b/Cargo.toml\n@@ -15,7 +15,7 @@ categor(...TRUNCATED) | "diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml\n--- a/.github/workflows/ci.yml\n+(...TRUNCATED) | [
"1047",
"1043"
] | 1,098 | "internal error when translating Ast to Hir\n#### What version of regex are you using?\r\n\r\nregex-(...TRUNCATED) | 1.9 | 17284451f10aa06c6c42e622e3529b98513901a8 | 17284451f10aa06c6c42e622e3529b98513901a8 | |
rust-lang/regex | 2023-08-30T23:19:37Z | rust-lang__regex-1080 | "diff --git a/regex-automata/src/util/pool.rs b/regex-automata/src/util/pool.rs\n--- a/regex-automat(...TRUNCATED) | "Note: A prerequisite to understanding this comment is probably to read the comments in the code sni(...TRUNCATED) | "diff --git a/regex-automata/src/util/pool.rs b/regex-automata/src/util/pool.rs\n--- a/regex-automat(...TRUNCATED) | [
"934"
] | 1,080 | "sharing one regex across many threads can lead to big slowdowns due to mutex contention\nTo reprodu(...TRUNCATED) | 1.9 | 9a505a1804f8f89e3448a2a2c5c70573dc6362e5 | 17284451f10aa06c6c42e622e3529b98513901a8 |
rust-lang/regex | 2023-08-26T12:53:23Z | rust-lang__regex-1072 | "diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml\n--- a/.github/workflows/ci.yml\n+(...TRUNCATED) | "diff --git a/regex-automata/src/util/prefilter/aho_corasick.rs b/regex-automata/src/util/prefilter/(...TRUNCATED) | [
"1070"
] | 1,072 | "RegexSet and Regex give different results for the same pattern in 1.9\n#### What version of regex a(...TRUNCATED) | 1.9 | 7536e055840f74f1f7bda8ffecf851cb3e500147 | 17284451f10aa06c6c42e622e3529b98513901a8 | |
rust-lang/regex | 2023-08-05T21:38:26Z | rust-lang__regex-1063 | "diff --git a/testdata/regression.toml b/testdata/regression.toml\n--- a/testdata/regression.toml\n+(...TRUNCATED) | "CLI reproduction:\r\n\r\n```\r\n$ regex-cli find match meta -p '(?:(\\d+)[:.])?(\\d{1,2})[:.](\\d{2(...TRUNCATED) | "diff --git a/regex-automata/src/meta/limited.rs b/regex-automata/src/meta/limited.rs\n--- a/regex-a(...TRUNCATED) | [
"1060"
] | 1,063 | "reverse inner literal optimization results in incorrect match offsets in some cases\n#### What vers(...TRUNCATED) | 1.9 | bbf0b38df618734b92d7b92acc8a8bf31b6d0046 | 17284451f10aa06c6c42e622e3529b98513901a8 |
rust-lang/regex | 2023-08-04T18:09:34Z | rust-lang__regex-1062 | "diff --git a/regex-automata/src/nfa/thompson/compiler.rs b/regex-automata/src/nfa/thompson/compiler(...TRUNCATED) | "diff --git a/regex-automata/src/dfa/dense.rs b/regex-automata/src/dfa/dense.rs\n--- a/regex-automat(...TRUNCATED) | [
"1059"
] | 1,062 | "1.9 memory usage: `globset`-generated RegexSet allocates and retains 48× more memory (600MB) vs re(...TRUNCATED) | 1.9 | a1910244f873e003efbe6e80ad9302c8ea949430 | 17284451f10aa06c6c42e622e3529b98513901a8 | |
rust-lang/regex | 2023-07-12T13:56:35Z | rust-lang__regex-1038 | "diff --git a/testdata/anchored.toml b/testdata/anchored.toml\n--- a/testdata/anchored.toml\n+++ b/t(...TRUNCATED) | "diff --git a/regex-automata/src/meta/strategy.rs b/regex-automata/src/meta/strategy.rs\n--- a/regex(...TRUNCATED) | [
"1036",
"1036"
] | 1,038 | "Anchored search with reverse suffix strategy does not work\n#### What version of regex are you usin(...TRUNCATED) | 1.9 | bbb285b81fd1108536eedc52990a95f30ca6bdf5 | 17284451f10aa06c6c42e622e3529b98513901a8 | |
rust-lang/regex | 2023-07-10T21:51:46Z | rust-lang__regex-1033 | "diff --git a/regex-syntax/src/hir/literal.rs b/regex-syntax/src/hir/literal.rs\n--- a/regex-syntax/(...TRUNCATED) | Yeah I think this sounds right to me! | "diff --git a/regex-syntax/src/hir/literal.rs b/regex-syntax/src/hir/literal.rs\n--- a/regex-syntax/(...TRUNCATED) | [
"1032"
] | 1,033 | "`hir::literal::Extractor` not producing optimal literals in some cases\n#### What version of regex (...TRUNCATED) | 1.9 | 28e16fa5c34ab30a84b20de730cbdbe636e8a6df | 17284451f10aa06c6c42e622e3529b98513901a8 |
End of preview. Expand in Data Studio
README.md exists but content is empty.
- Downloads last month
- 5