Mercurial > vim
view src/proto/json.pro @ 20540:193c0446cf28 v8.2.0824
patch 8.2.0824: still not enough memory allocated when converting string
Commit: https://github.com/vim/vim/commit/1919371b2b9ddb1a645f40b59adbd89317530882
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon May 25 23:01:42 2020 +0200
patch 8.2.0824: still not enough memory allocated when converting string
Problem: Still not enough memory allocated when converting string with
special character.
Solution: Reserve space for expanding K_SPECIAL. (closes #6130)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 25 May 2020 23:15:03 +0200 |
parents | 0f7ae8010787 |
children | 85b07a942518 |
line wrap: on
line source
/* json.c */ char_u *json_encode(typval_T *val, int options); char_u *json_encode_nr_expr(int nr, typval_T *val, int options); int json_decode(js_read_T *reader, typval_T *res, int options); int json_find_end(js_read_T *reader, int options); void f_js_decode(typval_T *argvars, typval_T *rettv); void f_js_encode(typval_T *argvars, typval_T *rettv); void f_json_decode(typval_T *argvars, typval_T *rettv); void f_json_encode(typval_T *argvars, typval_T *rettv); /* vim: set ft=c : */