summaryrefslogtreecommitdiffstats
path: root/graph.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2016-01-27 07:50:27 +0100
committerJunio C Hamano <gitster@pobox.com>2016-01-28 00:19:03 +0100
commit2e1175d43d05e83fe836e1c8c8e7c25b7ee659ae (patch)
tree05ae2bd23b338bd8db109e77d600e46cce3068f9 /graph.h
parentgit: remove an early return from save_env_before_alias() (diff)
downloadgit-2e1175d43d05e83fe836e1c8c8e7c25b7ee659ae.tar.xz
git-2e1175d43d05e83fe836e1c8c8e7c25b7ee659ae.zip
git: protect against unbalanced calls to {save,restore}_env()
We made sure that save_env_before_alias() does not skip saving the environment when asked to (which led to use-after-free of orig_cwd in restore_env() in the buggy version) with the previous step. Protect against future breakage where somebody adds new callers of these functions in an unbalanced fashion. Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'graph.h')
0 files changed, 0 insertions, 0 deletions