]> git.feebdaed.xyz Git - 0xmirror/vim.git/commit
patch 9.1.1975: blob2str() may call STRNCPY() with a NULL pointer
authorFoxe Chen <chen.foxe@gmail.com>
Fri, 12 Dec 2025 07:52:07 +0000 (08:52 +0100)
committerChristian Brabandt <cb@256bit.org>
Fri, 12 Dec 2025 07:52:07 +0000 (08:52 +0100)
commit3d06113c8c9628a478b0cf6c85248ff6ec5fac3a
tree22d837c5badbe4941ecda50f6aad5d3a4906d12e
parent353103e59afddbfae8432e715217b809e8e15998
patch 9.1.1975: blob2str() may call STRNCPY() with a NULL pointer

Problem:  blob2str() may call strcpy with a NULL pointer
Solution: Check for NULL before calling STRNCPY()

closes: #18907

Signed-off-by: Foxe Chen <chen.foxe@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
src/strings.c
src/version.c