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

Re: [PATCH] (7.5/?) Fix SEGV with unnamed buffer

Expand Messages
  • ZyX
    It would be better to merge this and (7/?) into one patch. # HG changeset patch # User ZyX # Date 1369556544 -14400 # Node ID
    Message 1 of 50 , May 26, 2013
    View Source
    • 0 Attachment
      It would be better to merge this and (7/?) into one patch.

      # HG changeset patch
      # User ZyX <kp-pav@...>
      # Date 1369556544 -14400
      # Node ID dacaaf15b8c8f00d0d2bb0c9fb4972608844cc4d
      # Parent 3fb04fcf34ebf32f217f724f85064879e29b7fe4
      Fix SEGV

      diff -r 3fb04fcf34eb -r dacaaf15b8c8 src/if_py_both.h
      --- a/src/if_py_both.h Sun May 26 11:14:08 2013 +0400
      +++ b/src/if_py_both.h Sun May 26 12:22:24 2013 +0400
      @@ -3397,7 +3397,8 @@
      BufferAttr(BufferObject *self, char *name)
      {
      if (strcmp(name, "name") == 0)
      - return PyString_FromString((char *) self->buf->b_ffname);
      + return PyString_FromString((self->buf->b_ffname == NULL
      + ? "" : (char *) self->buf->b_ffname));
      else if (strcmp(name, "number") == 0)
      return Py_BuildValue(Py_ssize_t_fmt, self->buf->b_fnum);
      else if (strcmp(name, "vars") == 0)

      --
      --
      You received this message from the "vim_dev" maillist.
      Do not top-post! Type your reply below the text you are replying to.
      For more information, visit http://www.vim.org/maillist.php

      ---
      You received this message because you are subscribed to the Google Groups "vim_dev" group.
      To unsubscribe from this group and stop receiving emails from it, send an email to vim_dev+unsubscribe@....
      For more options, visit https://groups.google.com/groups/opt_out.
    • ZyX
      You are right, thanks. Should have reread the docs. -- -- You received this message from the vim_dev maillist. Do not top-post! Type your reply below the
      Message 50 of 50 , Jun 1, 2013
      View Source
      • 0 Attachment
        You are right, thanks. Should have reread the docs.

        --
        --
        You received this message from the "vim_dev" maillist.
        Do not top-post! Type your reply below the text you are replying to.
        For more information, visit http://www.vim.org/maillist.php

        ---
        You received this message because you are subscribed to the Google Groups "vim_dev" group.
        To unsubscribe from this group and stop receiving emails from it, send an email to vim_dev+unsubscribe@....
        For more options, visit https://groups.google.com/groups/opt_out.
      Your message has been successfully submitted and would be delivered to recipients shortly.