Loading ...
Sorry, an error occurred while loading the content.

Re: Vim7: List Crash with Jan 14 build

Expand Messages
  • Peter Winters
    ... It segfaults here. Apparently because of insufficient allocation in string_quote. I think that: s = r = alloc(len); should really be: s = r = alloc(len +
    Message 1 of 3 , Jan 16, 2005
    • 0 Attachment
      On Sat, 15 Jan 2005 19:20:18 +0100, Bram Moolenaar <Bram@...> wrote:
      >
      > Johnny Blaze wrote:
      >
      > > :e <some file>
      > > ggVGy
      > > :let lines = split(@", "\n")
      > > :echo lines
      > >
      > > gives an instant crash.
      > >
      > > MSVC/WinXPSP2
      > >
      > > This worked on the previous build.
      >
      > It still works fine for me. Perhaps you are running out of memory?

      It segfaults here. Apparently because of insufficient allocation in
      string_quote. I think that:

      s = r = alloc(len);

      should really be:

      s = r = alloc(len + STRLEN(str));
    Your message has been successfully submitted and would be delivered to recipients shortly.