Skip to content

Commit

Permalink
Fix UBSAN in data fingerprint
Browse files Browse the repository at this point in the history
  • Loading branch information
eisenhauer committed Jun 2, 2020
1 parent 0bcc2a5 commit 7cee1a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/adios2/toolkit/sst/dp/evpath_dp.c
Original file line number Diff line number Diff line change
Expand Up @@ -525,7 +525,7 @@ static unsigned long writeBlockFingerprint(char *page, size_t size)
index++;
}
component += (unsigned char)page[index];
print |= (((long)component) << (8 * i));
print |= (((unsigned long)component) << (8 * i));
}
return print;
}
Expand Down

0 comments on commit 7cee1a9

Please sign in to comment.