summaryrefslogtreecommitdiff
path: root/t/t4018/php-function
diff options
context:
space:
mode:
authorDavid Macek <david.macek.0@gmail.com>2025-11-17 20:39:44 +0000
committerJunio C Hamano <gitster@pobox.com>2025-11-17 14:17:42 -0800
commitd22a488482092da64ad19fda82edde199bed2466 (patch)
tree975de56c51a354b0fe57dc06f0c88778be66b636 /t/t4018/php-function
parentf368df439b31b422169975cc3c95f7db6a46eada (diff)
wincred: avoid memory corruption
`wcsncpy_s()` wants to write the terminating null character so we need to allocate one more space for it in the target memory block. This should fix crashes when trying to read passwords. When this happened, the password/token wouldn't print out and Git would therefore ask for a new password every time. Signed-off-by: David Macek <david.macek.0@gmail.com> Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t4018/php-function')
0 files changed, 0 insertions, 0 deletions