Ken Takata wrote:
> 2016/6/8 Wed 5:16:40 UTC+9 Bram Moolenaar wrote:
> > Patch 7.4.1906
> > Problem: Collapsing channel buffers and searching for NL does not work
> > properly. (Xavier de Gary, Ramel Eshed)
> > Solution: Do not assume the buffer contains a NUL or not. Change NUL
> > bytes
> > to NL to avoid the string is truncated.
> > Files: src/channel.c, src/netbeans.c, src/proto/channel.pro
>
> > --- 419,432 ----
> > own_node = FALSE;
> >
> > /* now, parse and execute the commands */
> > ! nb_parse_cmd(node->rq_buffer);
> >
> > if (own_node)
> > /* buffer finished, dispose of it */
> > ! vim_free(node->rq_buffer);
> > else
> > /* more follows, move it to the start */
> > ! channel_consume(nb_channel, PART_SOCK, (int)(p - buffer));
>
> VC10 warns that the variable buffer is uninitialized.
> I think this should be node->rq_buffer.
> Please check the attached patch.
Thanks. I forgot to update this part. Besides your change we also need
to get the pointer out of "node" before it is freed. Using "buffer" for
that, thus fix it in another way.
--
hundred-and-one symptoms of being an internet addict:
62. If your doorbell rings, you think that new mail has arrived. And then
you're disappointed that it's only someone at the door.
/// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
--
--
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 [email protected].
For more options, visit https://groups.google.com/d/optout.