8000 fix: overflow when merging buffers larger than 2GB by adammoody · Pull Request #17 · LLNL/dtcmp · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

fix: overflow when merging buffers larger than 2GB #17

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

Merged
merged 1 commit into from
Oct 12, 2023
Merged
Changes from all commits
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
BFE2
Diff view
4 changes: 2 additions & 2 deletions src/dtcmp_merge_2way.c
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,10 @@ int dtcmp_merge_local_2way_memcpy(
/* at least one list is empty, copy all elements from
* the other list (if any) into the merge list */
if (buf_a != last_a) {
int remainder = last_a - buf_a;
size_t remainder = last_a - buf_a;
memcpy(out, buf_a, remainder);
} else if (buf_b != last_b) {
int remainder = last_b - buf_b;
size_t remainder = last_b - buf_b;
memcpy(out, buf_b, remainder);
}

Expand Down
0