From: Dominique Brezinski Date: 2006-04-28T03:24:01+09:00 Subject: Right way to handle memory allocation failures (related to fix for array.c issue)? 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