[ruby-core:73941] [Ruby trunk Bug#5720] Exceptions can be caused via eval that evade exception handling

From: usa@...
Date: 2016-02-23 08:47:50 UTC
List: ruby-core #73941
Issue #5720 has been updated by Usaku NAKAMURA.

Backport changed from 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN, 2.3: UNKNOWN to 2.0.0: DONTNEED, 2.1: DONTNEED, 2.2: DONTNEED, 2.3: DONTNEED

----------------------------------------
Bug #5720: Exceptions can be caused via eval that evade exception handling
https://bugs.ruby-lang.org/issues/5720#change-57091

* Author: Gabriel Gironda
* Status: Closed
* Priority: Normal
* Assignee: 
* ruby -v: 1.9.2-p290, 1.9.3-p0, 1.9.3-HEAD
* Backport: 2.0.0: DONTNEED, 2.1: DONTNEED, 2.2: DONTNEED, 2.3: DONTNEED
----------------------------------------
While poking at #5719, I discovered it's possible to cause an exception via Kernel#eval that leaks through any surrounding rescue block. Please see the gist for details. I tested against 1.9.2-p290, 1.9.3-p0, and HEAD of the 1.9.3 branch.

https://gist.github.com/ec12e41efda564ccac7a



-- 
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>

In This Thread

Prev Next