mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -04:00
patch 8.0.1468: illegal memory access in del_bytes()
Problem: Illegal memory access in del_bytes(). Solution: Check for negative byte count. (Christian Brabandt, closes #2466)
This commit is contained in:
@@ -761,7 +761,7 @@ emsgn(char_u *s, long n)
|
||||
void
|
||||
iemsg(char_u *s)
|
||||
{
|
||||
msg(s);
|
||||
emsg(s);
|
||||
#ifdef ABORT_ON_INTERNAL_ERROR
|
||||
abort();
|
||||
#endif
|
||||
@@ -4993,7 +4993,7 @@ vim_vsnprintf_typval(
|
||||
zero_padding = 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
{
|
||||
/* Regular float number */
|
||||
format[0] = '%';
|
||||
l = 1;
|
||||
@@ -5016,7 +5016,7 @@ vim_vsnprintf_typval(
|
||||
format[l + 1] = NUL;
|
||||
|
||||
str_arg_l = sprintf(tmp, format, f);
|
||||
}
|
||||
}
|
||||
|
||||
if (remove_trailing_zeroes)
|
||||
{
|
||||
|
Reference in New Issue
Block a user