Patch 8.2.3574 (after 8.2.3573)
Problem: Divide by zero.
Solution: Don't check for overflow if multiplicand is zero.
Files: src/register.c
*** ../vim-8.2.3573/src/register.c 2021-11-02 21:39:40.097064632 +0000
--- src/register.c 2021-11-02 22:47:01.965349007 +0000
***************
*** 2014,2021 ****
long multlen = count * yanklen;
totlen = multlen;
! if (totlen != multlen || totlen / count != yanklen
! || totlen / yanklen != count)
{
emsg(_(e_resulting_text_too_long));
break;
--- 2014,2022 ----
long multlen = count * yanklen;
totlen = multlen;
! if (count != 0 && yanklen != 0
! && (totlen != multlen || totlen / count != yanklen
! || totlen / yanklen != count))
{
emsg(_(e_resulting_text_too_long));
break;
*** ../vim-8.2.3573/src/version.c 2021-11-02 21:39:40.097064632 +0000
--- src/version.c 2021-11-02 22:48:34.152546877 +0000
***************
*** 759,760 ****
--- 759,762 ----
{ /* Add new patch number below this line */
+ /**/
+ 3574,
/**/
--
Facepalm statement #8: "Drive faster, the petrol is running out"
/// Bram Moolenaar -- Br...@Moolenaar.net --
http://www.Moolenaar.net \\\
/// \\\
\\\ sponsor Vim, vote for features --
http://www.Vim.org/sponsor/ ///
\\\ help me help AIDS victims --
http://ICCF-Holland.org ///