]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 9.1.0478: potential deref of NULL pointer in fuzzy_match_str_with_pos v9.1.0478
authorglepnir <glephunter@gmail.com>
Wed, 12 Jun 2024 18:31:13 +0000 (20:31 +0200)
committerChristian Brabandt <cb@256bit.org>
Wed, 12 Jun 2024 18:31:13 +0000 (20:31 +0200)
commit7c57940e3bd883cebb1d73d4b4effa9220d4c4c8
tree743b208771d5f63de36a3b53d49ffa69e6654215
parent1fb9eae5794c3f808468fbc2935c5144f9e0b5b1
patch 9.1.0478: potential deref of NULL pointer in fuzzy_match_str_with_pos

Problem:  potential deref of NULL pointer in fuzzy_match_str_with_pos()
          on cleanup (after v9.1.0476)
Solution: Only free the pointer if it is non-NULL (glepnir)

closes: #14973

Signed-off-by: glepnir <glephunter@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
src/search.c
src/version.c