[#7708] Bug in libsnmp-ruby1.8 — Hadmut Danisch <hadmut@...>

Hi,

8 messages 2006/04/11
[#7709] Re: Bug in libsnmp-ruby1.8 — Eric Hodel <drbrain@...7.net> 2006/04/11

On Apr 11, 2006, at 6:23 AM, Hadmut Danisch wrote:

[#7770] Re: possible defect in array.c — "Brown, Warren" <warrenbrown@...>

> rb_range_beg_len (in range.c) does set beg and len.

13 messages 2006/04/26
[#7771] Re: possible defect in array.c — "Pat Eyler" <rubypate@...> 2006/04/26

On 4/26/06, Brown, Warren <warrenbrown@aquire.com> wrote:

Right way to handle memory allocation failures (related to fix for array.c issue)?

From: "Dominique Brezinski" <dominique.brezinski@...>
Date: 2006-04-27 18:24:01 UTC
List: ruby-core #7795
To fix the integer wrap in rb_array_fill, there is a simple check that
can be done to determine if the newly calculated length to pass to
realloc wrapped. However, I am unsure of what to do if an overflow is
detected. Raise a runtime exception? If anyone has an opinion of what
is the most ruby-esque way is to handle the situation, I would
appreciate it. Otherwise, I will probably just raise a runtime error
exception.

Cheers,
Dom


In This Thread

Prev Next