Closed driusan closed 4 years ago
When an object doesn't exist in a packfile, checking for an object that starts with 0 can cause a panic, because the i >= 0 check is after the access in the loop condition.
Switch the order to that the loop terminates before accessing the index.
When an object doesn't exist in a packfile, checking for an object that starts with 0 can cause a panic, because the i >= 0 check is after the access in the loop condition.
Switch the order to that the loop terminates before accessing the index.