-
Notifications
You must be signed in to change notification settings - Fork 266
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
unit_test_tst_exhash
performs a too-large left shift
#2702
Comments
Looks like I am missing a set of parentheses. dirsize = ((1ULL<<(map->depth))*((unsigned long long)sizeof(void*))); |
Could be. I have no idea. :) I changed it to |
At least I think that's what you were suggesting... your asterixes got interpreted as markdown... |
DennisHeimbigner
added a commit
to DennisHeimbigner/netcdf-c
that referenced
this issue
Jul 24, 2023
1. Fix a shift bug in ncexhash.c (Issue Unidata#2702) 2. Fix an S3 related error in test_byterange.sh 3. Fix bz2/bzip2 handling in configure.ac
Fixed by PR #2726. |
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
ctest -R unit_test_tst_exhash
So basically it's doing 1ULL << 88.
Not sure what value it's expecting to get with such an operation, but it's undefined behaviour to shift into, or past, the MSB.
The text was updated successfully, but these errors were encountered: