comparison src/terminal.c @ 13250:fc33325c91c1 v8.0.1499

patch 8.0.1499: out-of-memory situation not correctly handled commit https://github.com/vim/vim/commit/4b7e7bed6cb16c8256e6973418701cfb15b30b8e Author: Bram Moolenaar <Bram@vim.org> Date: Sun Feb 11 14:53:30 2018 +0100 patch 8.0.1499: out-of-memory situation not correctly handled Problem: Out-of-memory situation not correctly handled. (Coverity) Solution: Check for NULL value.
author Christian Brabandt <cb@256bit.org>
date Sun, 11 Feb 2018 15:00:06 +0100
parents ac42c4b11dbc
children 8db0345053b9
comparison
equal deleted inserted replaced
13249:75a0fef55558 13250:fc33325c91c1
3151 attrs = cell.attrs; 3151 attrs = cell.attrs;
3152 fg = cell.fg; 3152 fg = cell.fg;
3153 bg = cell.bg; 3153 bg = cell.bg;
3154 } 3154 }
3155 dcell = dict_alloc(); 3155 dcell = dict_alloc();
3156 if (dcell == NULL)
3157 break;
3156 list_append_dict(l, dcell); 3158 list_append_dict(l, dcell);
3157 3159
3158 dict_add_nr_str(dcell, "chars", 0, mbs); 3160 dict_add_nr_str(dcell, "chars", 0, mbs);
3159 3161
3160 vim_snprintf((char *)rgb, 8, "#%02x%02x%02x", 3162 vim_snprintf((char *)rgb, 8, "#%02x%02x%02x",