mirror of
https://github.com/neovim/neovim.git
synced 2025-10-02 16:08:36 +00:00
memory.c: Prevent garbage collection when running out of memory.
When running out of memory, garbage collection would free lists and dictionaries that are not yet referenced. This would later on lead to a use-after-free for these objects. Releated to vim-patch:7.4.916, so also updating version.c. Patch by @ZyX-I
This commit is contained in:
@@ -74,6 +74,72 @@ static char *features[] = {
|
||||
|
||||
// clang-format off
|
||||
static int included_patches[] = {
|
||||
916,
|
||||
// 915,
|
||||
// 914,
|
||||
// 913,
|
||||
// 912,
|
||||
// 911,
|
||||
// 910,
|
||||
// 909,
|
||||
// 908,
|
||||
// 907,
|
||||
// 906,
|
||||
// 905,
|
||||
// 904,
|
||||
// 903,
|
||||
// 902,
|
||||
// 901,
|
||||
// 900,
|
||||
// 899,
|
||||
// 898,
|
||||
// 897,
|
||||
// 896,
|
||||
// 895,
|
||||
// 894,
|
||||
// 893,
|
||||
// 892,
|
||||
// 891,
|
||||
// 890,
|
||||
// 889,
|
||||
// 888,
|
||||
// 887,
|
||||
// 886,
|
||||
// 885,
|
||||
// 884,
|
||||
// 883,
|
||||
// 882,
|
||||
// 881,
|
||||
// 880,
|
||||
// 879,
|
||||
// 878,
|
||||
// 877,
|
||||
// 876,
|
||||
// 875,
|
||||
// 874,
|
||||
// 873,
|
||||
// 872,
|
||||
// 871,
|
||||
// 870,
|
||||
// 869,
|
||||
// 868,
|
||||
// 867,
|
||||
// 866,
|
||||
// 865,
|
||||
// 864,
|
||||
// 863,
|
||||
// 862,
|
||||
// 861,
|
||||
// 860,
|
||||
// 859,
|
||||
// 858,
|
||||
// 857,
|
||||
// 856,
|
||||
// 855,
|
||||
// 854,
|
||||
// 853,
|
||||
// 852,
|
||||
// 851,
|
||||
// 850,
|
||||
849,
|
||||
// 848,
|
||||
|
Reference in New Issue
Block a user