Commit message (Collapse) | Author | Age | |
---|---|---|---|
* | build: -Wmissing-prototypes | Justin M. Keyes | 2019-02-04 |
| | | | | | | | ref #343 Though I don't see a strong benefit, it isn't too much of a burden, and maybe avoids confusion in some cases. | ||
* | eval/decode: Silence PVS/V547: code written for 32-bit integers | ZyX | 2018-04-09 |
| | |||
* | Merge #7806 from ZyX-I/list-stat | Justin M. Keyes | 2018-01-15 |
|\ | | | | | Add a way to collect list usage statistics | ||
| * | *: Provide list length when allocating lists | ZyX | 2018-01-14 |
| | | |||
* | | coverity/169163: decode_string: Null pointer deref | Justin M. Keyes | 2018-01-11 |
|/ | | | | | | | | | | | | | | | | | | | *** CID 169163: Null pointer dereferences (FORWARD_NULL) /src/nvim/eval/decode.c: 290 in decode_string() 284 if (elw_ret == -1) { 285 tv_clear(&tv); 286 return (typval_T) { .v_type = VAR_UNKNOWN, .v_lock = VAR_UNLOCKED }; 287 } 288 return tv; 289 } else { >>> CID 169163: Null pointer dereferences (FORWARD_NULL) >>> Passing null pointer "s" to "xmemdupz", which dereferences it. (The dereference is assumed on the basis of the 'nonnull' parameter attribute.) 290 return (typval_T) { 291 .v_type = VAR_STRING, 292 .v_lock = VAR_UNLOCKED, 293 .vval = { .v_string = (char_u *)( 294 s_allocated ? (char *)s : xmemdupz(s, len)) }, 295 }; | ||
* | *: Remove most calls to tv_list_item_alloc | ZyX | 2017-12-24 |
| | | | | Still left calls in eval/typval.c and test/unit/eval/helpers.lua. Latter is the only reason why function did not receive `static` modifier. | ||
* | *: Fix linter errors | ZyX | 2017-12-11 |
| | |||
* | *: Hide list implementation in other files as well | ZyX | 2017-12-10 |
| | |||
* | *: Start hiding list implementation | ZyX | 2017-12-10 |
| | | | | Most of files, except for eval.c and eval/* were only processed by perl. | ||
* | eval/decode.c: Avoid NULL arg to memchr() #7332 | Adrian Neumann | 2017-11-06 |
| | | | | | | | Clang complains because memchr has undefined behavior if the ptr is NULL, even if len==0. Helped-by: Nikolai Aleksandrovich Pavlov <kp-pav@yandex.ru> | ||
* | lint | James McCoy | 2017-06-04 |
| | |||
* | vim-patch:7.4.1976 | James McCoy | 2017-06-04 |
| | | | | | | | Problem: Number variables are not 64 bits while they could be. Solution: Add the num64 feature. (Ken Takata) https://github.com/vim/vim/commit/22fcfad29276bd5f317faf516637dcd491b96a12 | ||
* | Merge branch 'master' into luaviml'/lua | ZyX | 2017-05-08 |
|\ | |||
| * | *: Add comment to all C files | ZyX | 2017-04-19 |
| | | |||
* | | Merge branch 'master' into luaviml'/lua | ZyX | 2017-04-10 |
|\| | |||
| * | *: Remove useless asserts | ZyX | 2017-04-08 |
| | | |||
| * | *: Fix linter errors | ZyX | 2017-04-08 |
| | | | | | | | | | | | | Drops comments `// for …` that do not pass linter for them being unmaintainable and fast to becoming incomplete or even incorrect. Mention @dedmass | ||
| * | eval/*code,shada: Drop support for converting UTF-8 from/to p_enc | ZyX | 2017-04-08 |
| | | | | | | | | Not needed any longer since p_enc is always utf-8. | ||
| * | eval/decode: Omit calling convert_setup for each string | ZyX | 2017-04-08 |
| | | | | | | Uses the same trick eval/encode does. | ||
| * | eval/decode,shada: Do not forget to clean up converters | ZyX | 2017-04-08 |
| | | |||
* | | Merge branch 'master' into luaviml'/lua | ZyX | 2017-04-08 |
|\| | |||
| * | Add handling for MSGPACK_OBJECT_FLOAT{32,64} | James McCoy | 2017-03-30 |
| | | | | | | | | | | | | msgpack-c previously only had MSGPACK_OBJECT_FLOAT, which was a 64-bit value. Now, 32-bit and 64-bit floats are supported as distinct types, but we'll simply continue to treat everything as 64-bit types. | ||
| * | *: Move some dictionary functions to typval.h and use char* | ZyX | 2017-03-29 |
| | | | | | | | | Also fixes buffer reusage in setmatches() and complete(). | ||
| * | eval: Split eval.c into smaller files | ZyX | 2017-03-29 |
| | | |||
* | | eval/decode: Fix memory leak in JSON functions | ZyX | 2017-03-27 |
| | | |||
* | | viml/executor: Directly generate typval_T values | ZyX | 2017-03-27 |
|/ | | | | | Note: this will *still* crash when using API in cases similar to the one described in first commit. Just it needs different code to reproduce. | ||
* | lib/kvec: Do not use kv_init unless needed | ZyX | 2016-05-30 |
| | |||
* | lib/kvec: Remove useless type argument from kv_push macros | ZyX | 2016-05-30 |
| | |||
* | *: Make set_vim_var_\* functions have proper argument types | ZyX | 2016-04-18 |
| | |||
* | eval/decode: Accept `\r` as space character | ZyX | 2016-04-18 |
| | |||
* | eval/decode: Do not overflow when parsing `-` | ZyX | 2016-04-18 |
| | | | Also makes if’s less nested. | ||
* | eval/decode: Clarify meaning of some pointer arguments | ZyX | 2016-04-18 |
| | |||
* | eval/decode: Fix typo in internal error message | ZyX | 2016-04-18 |
| | |||
* | eval/decode: Reject even more numbers | ZyX | 2016-04-18 |
| | | | | Rejects leading zeroes and numbers like 1.e+5 (decimal dot with missing number with signed exponent). | ||
* | *: Fix linter errors | ZyX | 2016-04-18 |
| | |||
* | eval/decode: Rewrite json_decode_string end as suggested by oni-link | ZyX | 2016-04-18 |
| | |||
* | eval/decode: Reject more numbers, accept 1e5 | ZyX | 2016-04-18 |
| | |||
* | eval/decode: Do not loose high surrogates followed by high surrogates | ZyX | 2016-04-18 |
| | |||
* | eval/decode: Make sure that error messages do not cause overflow | ZyX | 2016-04-18 |
| | |||
* | eval/decode: Make sure that parsing strings does not overflow | ZyX | 2016-04-18 |
| | |||
* | eval/decode: Make sure that blank input does not crash Neovim | ZyX | 2016-04-18 |
| | |||
* | eval/decode: Make sure that U+00C3 is parsed correctly | ZyX | 2016-04-18 |
| | |||
* | eval/decode: Avoid overflow when parsing incomplete null/true/false | ZyX | 2016-04-18 |
| | | | | Note: second test does not crash or produce asan errors, even though it should. | ||
* | eval/decode: Rename brackets in error messages | ZyX | 2016-04-18 |
| | | | | | U+007D is officially RIGHT CURLY BRACKET. U+005D is officially RIGHT SQUARE BRACKET. | ||
* | eval/decode: Record that `obj` may be freed | ZyX | 2016-04-18 |
| | |||
* | eval/decode: Also use VAR_UNLOCKED in old code | ZyX | 2016-04-18 |
| | |||
* | encode: Handle incomplete surrogates like `\uSURR\uOTHR` properly | ZyX | 2016-04-18 |
| | |||
* | *: Fix memory leaks found by clang sanitizer | ZyX | 2016-04-18 |
| | |||
* | *: Fix gcc warnings | ZyX | 2016-04-18 |
| | |||
* | eval/decode: Fix vim_str2nr invocation | ZyX | 2016-04-18 |
| |