Project

General

Profile

Actions

Bug #7772

closed

Consider bumping stack size in ruby_qsort

Added by Conrad.Irwin (Conrad Irwin) almost 12 years ago. Updated almost 11 years ago.

Status:
Closed
Target version:
ruby -v:
1.9.3p362
[ruby-core:51816]

Description

At the moment the maximum size of the stack is 32. The comment implies this should be enough for arrays with up to 2**32 elements, but it's possible to create larger arrays on some big systems.

I was not able to trigger a bug with: ([0, 1] * (2**32 + 10000)).sort! so it may actually never be a problem in practice, but it seems unsafe.


Files

0001-Bump-stack-size-in-ruby_qsort-for-64-bit-CPUs.patch (1010 Bytes) 0001-Bump-stack-size-in-ruby_qsort-for-64-bit-CPUs.patch Patch to bump size to 64 Conrad.Irwin (Conrad Irwin), 02/03/2013 04:07 PM
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0Like0