forked from aniani/vim
patch 8.0.0134
Problem: Null pointer access reported by UBsan. Solution: Check curwin->w_buffer is not NULL. (Yegappan Lakshmanan)
This commit is contained in:
parent
fe38b494ff
commit
c4bfedabe0
@ -3967,7 +3967,8 @@ do_ecmd(
|
|||||||
* <VN> We could instead free the synblock
|
* <VN> We could instead free the synblock
|
||||||
* and re-attach to buffer, perhaps.
|
* and re-attach to buffer, perhaps.
|
||||||
*/
|
*/
|
||||||
if (curwin->w_s == &(curwin->w_buffer->b_s))
|
if (curwin->w_buffer != NULL
|
||||||
|
&& curwin->w_s == &(curwin->w_buffer->b_s))
|
||||||
curwin->w_s = &(buf->b_s);
|
curwin->w_s = &(buf->b_s);
|
||||||
#endif
|
#endif
|
||||||
curwin->w_buffer = buf;
|
curwin->w_buffer = buf;
|
||||||
|
@ -764,6 +764,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
134,
|
||||||
/**/
|
/**/
|
||||||
133,
|
133,
|
||||||
/**/
|
/**/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user