author | Rafael Gieschke <rafael@gieschke.de> | |
Mon, 16 May 2011 20:08:21 +0000 (22:08 +0200) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Wed, 18 May 2011 04:27:19 +0000 (21:27 -0700) | ||
commit | c0336ff27a9a4bf9db87d65c5dec1ebf7dd9f8c6 | |
tree | 0a446ec6aa5b2e2f2a701c178ac6b3210c3311ae | tree | snapshot |
parent | 547e8b9205349b47003ed25a82673e413e71c255 | commit | diff |
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>
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>
ident.c | diff | blob | history |