-
Notifications
You must be signed in to change notification settings - Fork 286
ticket #TSP-8629412 bug fix #3187
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
Conversation
v4.9.3-rc2 wellspring changes
Update upload-artifact/download-artifact for github actions
Fix out-of-tree builds generating netcdf_json.h and netcdf_proplist.h
Update error code list.
Capture ac-based log artifacts
Clean up a couple small things while I'm looking at them.
## Primary Changes 1. The ncdap_test/test_manyurls.c build in ncdap_test/Makefile.am caused some makefile warnings. These were fixed. 2. Make the test program ncdap_test/test_manyurls.c be operable. 3. After 1 and 2, it turns out that the test case is probably useless, so disable it. ## Secondary Changes 1. Fix the fact that the --enable-dap-long-tests option was not generating a corresponding NETCDF_ENABLE_DAP_LONG_TESTS flag in config.h. 2. Add NETCDF_ENABLE_DAP_LONG_TESTS to config.h.cmake.in to make it visible. 3. Discovered and fixed an obscure error in libdispatch/nclist.c function nameed nclistsetalloc. 4. Add support for CURLOPT_VERBOSE (as an environment variable) to libsrc/httpio.c.
re: Issue Unidata#3184 When ncdump attempts to find a dimension's Fully Qualified Name (FQN), it uses a two step process. 1. Search up the group tree starting at the group in which the dimension the referenced. 2. If not found, then do a breadth first search of the whole group tree looking for the dimension. Once located, a FQN is constructed with respect to the group in which the dimension was found. It turns out there was a bug in the ncdump function "searchgroupdim" such that it always returned the top level group as the one containing the dimension. This, of course is erroneous for nested dimension. So the "searchgroupdim" function was fixed to properly fail if the dimension was not actually in the root group.
Fix bug in ncdump when printing dimension FQN
Fix the problems around ncdap_test/test_manyurls.c.
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This line and similar lines use size_t as a constant, but it fails in many cases.
What is the supposed value of size_t as a constant?
#define SIZE_MAX ((size_t)-1)
|
Can you please annotate the code changes to indicate what error they are fixing? |
(size_t)-1 is used to obtain the platform-independent maximum value of size_t. On 32-bit systems, it is 0xFFFFFFFF, and on 64-bit systems, it is 0xFFFFFFFFFFFFFFFF. |
The changes I made to the code are relatively minor and quite similar, pertaining to routine security checks. I believe comments may not be strictly necessary in this case. |
|
Sorry, my mistake — I'm going to close this one and start over with a new pull request. |
|
Please review this new pull request. |
A total of 8 vulnerabilities were fixed, including 5 integer overflows, 2 division-by-zero crashes, and 1 null pointer crash.