Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix integer overflow in SortedRanges.invertOnNew. Fixes #666. #667

Merged
merged 2 commits into from
May 25, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2191,7 +2191,7 @@ static boolean removeLegacy(final MutableObject<SortedRanges> sarOut, final Inde
public final TreeIndexImpl invertRangeOnNew(final long start, final long end, final long maxPosition) {
final long packedStart = pack(start);
int i = 0;
int pos = 0;
long pos = 0;
rcaudy marked this conversation as resolved.
Show resolved Hide resolved
long data = packedGet(i);
boolean neg = false;
long pendingStart = -1;
Expand Down