diff options
author | Eric Sunshine <sunshine@sunshineco.com> | 2013-07-31 04:15:39 -0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2013-08-05 11:54:31 -0700 |
commit | 25fb8ee4450b3366bf1e9536a5585341d35b7b20 (patch) | |
tree | 728dfd22e9b3888c295eb0dd0d68ebd236508c0d /t/t0005-signals.sh | |
parent | blame: fix -L bounds checking bug (diff) | |
download | tgif-25fb8ee4450b3366bf1e9536a5585341d35b7b20.tar.xz |
t4211: log: demonstrate -L bounds checking bug
A bounds checking bug allows the X in -LX to extend one line past the
end of file. For example, given a file with 5 lines, -L6 is accepted as
valid. Demonstrate this problem.
While here, also add tests to check that the remaining cases of X and Y
in -LX,Y are handled correctly at and in the vicinity of end-of-file.
Signed-off-by: Eric Sunshine <sunshine@sunshineco.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t0005-signals.sh')
0 files changed, 0 insertions, 0 deletions