mirror of
https://github.com/neovim/neovim.git
synced 2025-09-22 03:08:27 +00:00

Since 8b8ecf4
, the shada module loads files in the jumplist to properly
clear duplicates. This can trigger some autocommands, which in turn
saves and restores search and substitute patterns, freeing the previous
strings in "spats" which are held in "wms" as well (heap-use-after-free).
To avoid this, initialize the jumplist in "wms" before search patterns.