mirror of
https://github.com/git/git.git
synced 2024-11-27 20:14:30 +08:00
copy_gecos: fix not adding nlen to len when processing "&"
nlen has to be added to len when inserting (capitalized) pw_name as substitution for "&" in pw_gecos. Otherwise, pw_gecos will be truncated and data might be written beyond name+sz. Signed-off-by: Rafael Gieschke <rafael@gieschke.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
547e8b9205
commit
c0336ff27a
Loading…
Reference in New Issue
Block a user