rubanthilak (Ruban Thilak)
- Login: rubanthilak
- Registered on: 04/09/2023
- Last sign in: 09/13/2024
Issues
| open | closed | Total | |
|---|---|---|---|
| Assigned issues | 0 | 0 | 0 |
| Reported issues | 0 | 2 | 2 |
Activity
01/25/2024
-
05:46 PM Ruby Bug #20212 (Closed): Regex match method is crashing - (irb):6: [BUG] Segmentation fault at 0x0000000000000000 ruby 3.3.0 (2023-12-25 revision 5124f9ac75) [x86_64-darwin22]
- Tried this with ruby 3.3.0, both irb and rails console are crashing
```ruby
DOMAIN_REGEX = Regexp.new(
/\A((?=.*?[a-z])(?!.*--)[a-z\d]+[a-z\d-]*[a-z\d]+).((?=.*?[a-z])(?!.*--)[a-z\d]+[a-z\d-]*[a-z\d]+).((?=.*?[a-z])(?!.*--)[a-zd]+...
04/10/2023
-
04:43 PM Ruby Bug #19587: Segmentation fault with ruby 3.2.0 - when running rspec suit.
- This is the described_class.
```ruby
module Regex
module Parser
extend self
def extract(str, regex_str)
regex = Regexp.new(regex_str, timeout: 1.0)
regex.match?(str) ? str.match(regex) : nil
rescue...
04/09/2023
-
08:02 AM Ruby Bug #19587: Segmentation fault with ruby 3.2.0 - when running rspec suit.
- Rails Version : 6-1-stable
Bundler Version: 2.4.1
rspec-rails Version: 4.0 -
07:57 AM Ruby Bug #19587 (Closed): Segmentation fault with ruby 3.2.0 - when running rspec suit.
- The segmentation fault occurs when this particular regex match happens while running the entire Rspec test suit.
```ruby
it 'returns nil after timeout for untrusted regex' do
extracted_value = described_class.extract('test...