[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#8344: (substring ...) crashes on large vectors
From: |
Stefan Monnier |
Subject: |
bug#8344: (substring ...) crashes on large vectors |
Date: |
Fri, 25 Mar 2011 17:24:58 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) |
> The problem is that (substring ...) internally calls
> (vector ...), and (vector ...) cannot create a vector
> whose length is 2**31 or greater, because it follows
> the Emacs convention that varargs functions count the
> number of arguments using an 'int'.
I'm pretty sure that even with your patch such a vector would bump into
all kinds of other problems.
Already buffers larger than 2GB are causing troubles right now. So if
you want to fix things, I'd urge you to focus on "handling an 8GB file"
(on 32bit systems this won't work, but on 64bit it should but didn't
last time I tried).
Stefan