diff options
author | René Scharfe <l.s.r@web.de> | 2019-09-15 14:10:28 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2019-09-16 12:50:33 -0700 |
commit | 59fa5f5a25d9ccc57558ac44cce83d37ac1cec58 (patch) | |
tree | e2fa7a954b44962ce6696c5be7f57349828e65e3 /log-tree.c | |
parent | rev-parse: demonstrate overflow of N for "foo^N" and "foo~N" (diff) | |
download | tgif-59fa5f5a25d9ccc57558ac44cce83d37ac1cec58.tar.xz |
sha1-name: check for overflow of N in "foo^N" and "foo~N"
Reject values that don't fit into an int, as get_parent() and
get_nth_ancestor() cannot handle them. That's better than potentially
returning a random object.
If this restriction turns out to be too tight then we can switch to a
wider data type, but we'd still have to check for overflow.
Signed-off-by: René Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'log-tree.c')
0 files changed, 0 insertions, 0 deletions