Christ van Willegen wrote:

> Op wo 29 mei 2019 20:27 schreef Bram Moolenaar <[email protected]>:
> 
> >
> > Patch 8.1.1416
> > Problem:    Popup_getposition() not implemented yet.
> > Solution:   Implement it. (Yasuhiro Matsumoto, closes #4449)
> >
> 
> > +       dict = rettv->vval.v_dict;
> > +       dict_add_number(dict, "line", wp->w_winrow + 1);
> > +       dict_add_number(dict, "col", wp->w_wincol + 1);
> > +       dict_add_number(dict, "width", wp->w_width);
> > +       dict_add_number(dict, "height", wp->w_height);
> > +     }
> > + }
> 
> What happens if dict_add_number fails? Can it run out of memory when
> copying the string?

It is possible that memory runs out, yes.  You will get an
out-of-memory error message then.

-- 
hundred-and-one symptoms of being an internet addict:
45. You buy a Captain Kirk chair with a built-in keyboard and mouse.

 /// 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].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/201905292028.x4TKSo1q018532%40masaka.moolenaar.net.
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui