General

Profile

bladenkerst (Brad Sumersford)

Issues

open closed Total
Assigned issues 0 0 0
Reported issues 0 2 2

Activity

12/02/2013

11:19 PM Ruby Bug #9173: rb_sprintf %li format specifier does not work correctly with long values and can cause Ruby to crash
I was trying to find confirmation of the change before posting this issue but I was unable to find a reference. Thank-you for clarifying, this can be closed. bladenkerst (Brad Sumersford)

11/29/2013

03:09 AM Ruby Bug #9173 (Rejected): rb_sprintf %li format specifier does not work correctly with long values and can cause Ruby to crash
There is additional handling of %i versus %d in BSD_vfprintf (>= 2.0). When l (long) is specified as the length, %li, the additional handling is triggered.
Note: %ld works fine, %li and %ld work in Ruby 1.9.3
Sample Code:
## spri...
bladenkerst (Brad Sumersford)

02/08/2013

11:33 AM Ruby Bug #7802 (Closed): Ruby crashes when detect is called while executing the ensure callback given to rb_ensure
Conditions:
- rb_ensure(cb, cb_args, ensure, ensure_args) is used from C API
- cb raises an exception
- ensure calls Enumerable#detect and detect finds an element
Sample code:
# ensured.c
#include "ruby.h"
static VALUE
...
bladenkerst (Brad Sumersford)

Also available in: Atom