Files
git/builtin
Derrick Stolee e4003ef7ea sparse-checkout: fix OOM error with mixed patterns
Add a test to t1091-sparse-checkout-builtin.sh that would result in an
infinite loop and out-of-memory error before this change. The issue
relies on having non-cone-mode patterns while trying to modify the
patterns in cone-mode.

The fix is simple, allowing us to break from the loop when the input
path does not contain a slash, as the "dir" pattern we added does not.

This is only a fix to the critical out-of-memory error. A better
response to such a strange state will follow in a later change.

Reported-by: Calbabreaker <calbabreaker@gmail.com>
Helped-by: Taylor Blau <me@ttaylorr.com>
Reviewed-by: Elijah Newren <newren@gmail.com>
Signed-off-by: Derrick Stolee <dstolee@microsoft.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2021-12-16 11:17:25 -08:00
..
2021-10-13 15:15:57 -07:00
2020-07-30 19:18:06 -07:00
2021-10-28 09:57:09 -07:00
2021-02-25 16:43:30 -08:00
2021-02-25 16:43:30 -08:00
2021-07-28 13:17:59 -07:00
2021-11-12 15:29:25 -08:00
2021-11-10 15:01:20 -08:00
2021-10-23 10:45:25 -07:00
2021-10-13 15:15:58 -07:00
2021-04-14 13:47:21 -07:00
2021-09-28 10:31:02 -07:00
2021-10-25 16:06:58 -07:00
2021-12-10 14:35:10 -08:00
2021-12-10 14:35:12 -08:00
2020-07-30 19:18:06 -07:00
2021-11-03 13:25:36 -07:00
2020-08-11 18:04:11 -07:00