Patch 8.2.3728
Problem: Internal error when passing range() to list2blob().
Solution: Materialize the list first. (closes #9262)
Files: src/blob.c, src/testdir/test_blob.vim
*** ../vim-8.2.3727/src/blob.c 2021-09-14 16:53:39.316540671 +0100
--- src/blob.c 2021-12-03 13:54:40.055693853 +0000
***************
*** 526,531 ****
--- 526,532 ----
if (l == NULL)
return;
+ CHECK_LIST_MATERIALIZE(l);
FOR_ALL_LIST_ITEMS(l, li)
{
int error;
*** ../vim-8.2.3727/src/testdir/test_blob.vim 2021-09-17 20:06:53.124560949
+0100
--- src/testdir/test_blob.vim 2021-12-03 13:56:18.435566883 +0000
***************
*** 675,681 ****
--- 675,684 ----
let b = range(16)->repeat(64)->list2blob()
call assert_equal(1024, b->len())
call assert_equal([4, 8, 15], [b[100], b[1000], b[1023]])
+
call assert_equal(0z, list2blob(test_null_list()))
+ call assert_equal(0z00010203, list2blob(range(4)))
endfunc
+
" vim: shiftwidth=2 sts=2 expandtab
*** ../vim-8.2.3727/src/version.c 2021-12-03 13:20:25.895976919 +0000
--- src/version.c 2021-12-03 13:56:39.467540825 +0000
***************
*** 755,756 ****
--- 755,758 ----
{ /* Add new patch number below this line */
+ /**/
+ 3728,
/**/
--
The word "leader" is derived from the word "lead", as in the material that
bullets are made out of. The term "leader" was popularized at about the same
time as the invention of firearms. It grew out of the observation that the
person in charge of every organization was the person whom everyone wanted to
fill with hot lead.
I don't recomment this; it's just a point of historical interest.
(Scott Adams - The Dilbert principle)
/// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\
/// \\\
\\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
\\\ 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/20211203135802.413C61C28E2%40moolenaar.net.