Issue #17141 has been updated by jeremyevans0 (Jeremy Evans).


nagachika (Tomoyuki Chikanaga) wrote in #note-2:
> Hi Jeremy,
> The code around the patch you show is exactly same in master and ruby_2_7 branches.
> Isn't the patch necessary for master branch?

The program doesn't crash in master, so I assume the fix isn't needed in master.  It's possible there is a better fix for 2.7 that fixes the problem at a higher level of the call stack, but I did not investigate where that would be.

----------------------------------------
Bug #17141: Crash when parsing malformed input
https://bugs.ruby-lang.org/issues/17141#change-87484

* Author: tumdum (Tomasz Kak)
* Status: Closed
* Priority: Normal
* ruby -v: ruby 2.7.1p83 (2020-03-31 revision a0c7c23c9c) [x86_64-linux]
* Backport: 2.5: DONTNEED, 2.6: DONTNEED, 2.7: REQUIRED
----------------------------------------
Calling "ruby crash_small.rb" crashes ruby - see attached crash log

---Files--------------------------------
crash_small.rb (6 Bytes)
log.txt (16.8 KB)


-- 
https://bugs.ruby-lang.org/

Unsubscribe: <mailto:ruby-core-request / ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>