Mercurial > vim
comparison src/memline.c @ 25678:4da50e168dc9 v8.2.3375
patch 8.2.3375: using uninitialized memory
Commit: https://github.com/vim/vim/commit/df9070e300dabf0c54de87a75973a80adb38afa3
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Aug 25 17:31:37 2021 +0200
patch 8.2.3375: using uninitialized memory
Problem: Using uninitialized memory.
Solution: Initialize textprop_save_len.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 25 Aug 2021 17:45:04 +0200 |
parents | ab42c36d1a27 |
children | 076f9b8e9632 |
comparison
equal
deleted
inserted
replaced
25677:baa07b3a541a | 25678:4da50e168dc9 |
---|---|
287 buf->b_ml.ml_stack_top = 0; // nothing in the stack | 287 buf->b_ml.ml_stack_top = 0; // nothing in the stack |
288 buf->b_ml.ml_locked = NULL; // no cached block | 288 buf->b_ml.ml_locked = NULL; // no cached block |
289 buf->b_ml.ml_line_lnum = 0; // no cached line | 289 buf->b_ml.ml_line_lnum = 0; // no cached line |
290 #ifdef FEAT_BYTEOFF | 290 #ifdef FEAT_BYTEOFF |
291 buf->b_ml.ml_chunksize = NULL; | 291 buf->b_ml.ml_chunksize = NULL; |
292 buf->b_ml.ml_usedchunks = 0; | |
292 #endif | 293 #endif |
293 | 294 |
294 if (cmdmod.cmod_flags & CMOD_NOSWAPFILE) | 295 if (cmdmod.cmod_flags & CMOD_NOSWAPFILE) |
295 buf->b_p_swf = FALSE; | 296 buf->b_p_swf = FALSE; |
296 | 297 |
3605 long line_size; | 3606 long line_size; |
3606 int i; | 3607 int i; |
3607 int ret = FAIL; | 3608 int ret = FAIL; |
3608 #ifdef FEAT_PROP_POPUP | 3609 #ifdef FEAT_PROP_POPUP |
3609 char_u *textprop_save = NULL; | 3610 char_u *textprop_save = NULL; |
3610 int textprop_save_len; | 3611 int textprop_save_len = 0; |
3611 #endif | 3612 #endif |
3612 | 3613 |
3613 if (lowest_marked && lowest_marked > lnum) | 3614 if (lowest_marked && lowest_marked > lnum) |
3614 lowest_marked--; | 3615 lowest_marked--; |
3615 | 3616 |