summaryrefslogtreecommitdiffstats
path: root/tools
Commit message (Collapse)AuthorAgeFilesLines
* Fix several spelling/grammar issues (#3621)jhendersonHDF2023-10-035-5/+5
|
* Remove unnecessary assignment in test generator (#3603)Dana Robinson2023-09-271-1/+0
| | | | | | | Fixes what looks like a copy/paste/modify error in the format convert test file generator, where an array element is assigned one value and them immediately overwritten by another value. Fixes Coverity issue 1542285
* Fix potential uninitialized variable (#3602)Dana Robinson2023-09-271-3/+4
| | | | | | | | | | Moves a union initialization up a bit so it's performed before code that can jump to the cleanup target, where file descriptors could be checked without being initialized. This could only happen in test code and only in an out-of-memory situation. Fixes Coverity 1542254
* Develop tools move (#3580)Allen Byrne2023-09-261037-2117/+2184
| | | Reorganizes the tools files to support the VOL tests
* Replaces HDgetenv with getenv (#3599)Scot Breitenfeld2023-09-267-14/+14
|
* Use HDoff_t with lseek consistently (#3600)Dana Robinson2023-09-263-8/+8
| | | | | lseek on Windows uses __int64 for both the offset and return type instead of off_t like most POSIX systems. This changes ensures we use HDoff_t (which is typdef'd correctly on Windows) w/ lseek.
* Strip HD prefix from string/char C API calls (#3540)Dana Robinson2023-09-1560-1078/+1078
| | | | | | | | | | | | | | | | | | | | | * Strip HD prefix from string/char C API calls * HD(f)(put|get)(s|c) * HDstr* * HDv*printf * HD(s)(print|scan)f * HDperror But NOT: * HDstrcase* * HDvasprintf * HDstrtok_r * HDstrndup As those are not C99 and have portability work-around implementations. They will be handled later. * Fix th5_system.c screwup
* Remove HD prefix from math functions (#3538)Dana Robinson2023-09-142-42/+42
|
* hbool_t/TRUE/FALSE --> bool/true/false in tools (#3491)Dana Robinson2023-09-0557-1409/+1405
|
* Fix for CVE-2018-15671. h5stat -S $POC will result in a crash with ↵vchoi-hdfgroup2023-08-252-16/+2
| | | | | | segmenetation fault. (#3427) It is because the object in the testfile points back to the root group. When the tool tries to traverse the object, it goes back to the root group and then back again.
* Avoid H5Ocopy in h5repack for variable-length string types (#3419)jhendersonHDF2023-08-241-0/+4
|
* Add other types and full type to enum/str/vlen dataformat for ↵Allen Byrne2023-08-242-59/+76
| | | | structblock[begin/end] (#3353)
* Fix ph5diff tests for MPIEXEC_MAX_NUMPROCS=1 (#3407)jhendersonHDF2023-08-222-7/+11
|
* Make h5dump spacing consistent when printing VLEN datatype (#3351)jhendersonHDF2023-08-0412-26/+26
|
* Fixes the last of the -Wextra-semi-stmt warnings (#3326)Sean McBride2023-08-023-9/+9
| | | | | | | | | | | | | | | | | | | | | | | * Fixed extra semi warning by adjusting alternative macro definitions * Find-replace H5E_END_TRY; -> H5E_END_TRY * Made H5Epush_goto a do-while loop, fixed indentation * Made GOTOERROR and ERRMSG do-while loops * Made Hgoto_error and Hgoto_done do-while loops * Made vrfy_cint_type and vrfy_ctype do-while loops * Made TEST_TYPE_CONTIG and others do-while loops * Removed extraneous semi-colons * Committing clang-format changes --------- Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
* Fix h5repack for variable-length datatyped datasets (#3331)jhendersonHDF2023-08-021-1/+12
|
* Fix H5Otoken_to_str call in h5dump and other minor cleanup (#3314)jhendersonHDF2023-08-023-30/+62
|
* Another round of fixing -Wextra-semi-stmt warnings (#3264)Sean McBride2023-07-247-16/+16
| | | Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
* removed the use of encoded single apostrophe (#3261)Scot Breitenfeld2023-07-203-3/+3
| | | | | | * removed the use of encoded single apostrophe, and fix H5Dread_chunk from write to read * updated sanitizer paragraph * fixed brief description for H5Fget_info
* Fix some warnings in developer builds (#3247)jhendersonHDF2023-07-182-0/+5
| | | | | * Fix some warnings in developer builds * Switch approach to Winline flag
* ROS3: (feature) Temporary security credentials (#3030)Jan-Willem Blokland2023-07-147-216/+270
| | | | | | | | | | - Implemented support for AWS temporary security credentials. For this kind of credentials also a session/security token should be included in the request by adding the x-amz-security-token header. Co-authored-by: Larry Knox <lrknox@hdfgroup.org> Co-authored-by: Jordan Henderson <jhenderson@hdfgroup.org> Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
* Remove HD from HDis* (e.g., isalpha) (#3212)Dana Robinson2023-06-295-23/+23
| | | | | | | | | | | | | * HDisalnum * HDisalpha * HDiscntrl * HDisdigit * HDisgraph * HDislower * HDisprint * HDispunct * HDisspace * HDisupper * HDisxdigit
* Remove HD from HDmem* calls (#3211)Dana Robinson2023-06-2935-296/+296
|
* Remove programmer/date from comments (#3210)Dana Robinson2023-06-2946-561/+1
| | | | * Removes Programmer: and Date: fields * Fixes a few Modifications: fields leftover from previous work
* Remove HD from C std lib file ops (#3206)Dana Robinson2023-06-2919-113/+113
| | | | | | | | | * HDfclose * HDferror * HDfeof * HDfflush * HDfopen * HDfread * HDfwrite
* Remove HD from strto* calls (#3204)Dana Robinson2023-06-2913-41/+41
| | | | | | | | * HDstrtod * HDstrtol * HDstrtoll * HDstrtoul * HDstrtoull * HDstrtoumax
* Rename HDexit() and related to exit(), etc. (#3202)Dana Robinson2023-06-2927-115/+115
| | | | | * HDatexit * HDexit * HD_exit
* Rename HDato*() to ato*() (#3201)Dana Robinson2023-06-2911-53/+53
|
* Remove HD from protected POSIX calls (#3203)Dana Robinson2023-06-292-18/+18
| | | | | | | | | | | These calls are non-C99 but protected by ifdefs and have no Windows equivalents: * HDalarm * HDasprintf * HDclock_gettime * HDfcntl * HDgethostname * HDgetrusage * HDsymlink
* Remove HD from memory allocate/free calls (#3195)Dana Robinson2023-06-2850-889/+887
| | | | | | * HDcalloc * HDfree * HDmalloc * HDrealloc
* Rename HDsystem() to system() (#3197)Dana Robinson2023-06-281-2/+2
| | | | system() is only used in the iopipe test and the things it calls (which are POSIX-y) are protected by an ifdef.
* Add note about HDF5_VOL_CONNECTOR to tools usage (#3159)mattjala2023-06-2828-0/+99
|
* Rename HD(f)printf() to (f)printf() (#3194)Dana Robinson2023-06-2856-2491/+2476
|
* Rename HDassert() to assert() (#3191)Dana Robinson2023-06-2814-599/+599
| | | | | * Change HDassert to assert * Fix bin/make_err
* Remove HDva_(arg|copy|end|start) (#3184)Dana Robinson2023-06-284-14/+14
|
* Many fixes to various compiler warnings (#3124)Sean McBride2023-06-1921-87/+98
| | | | | | | | | | | * Fixed various -Wmissing-variable-declarations by adding static keyword * In a few cases, renamed the variable suffix from _g to _s. * Fixed some -Wmissing-variable-declarations by using different declaration macros * Fixed various -Wconditional-uninitialized warnings by just initializing variable to zero * Fixed various -Wcomma warnings * Fixed clang -Wstrict-prototypes warnings * Fixed various -Wunused-variable warnings * Updated some casts to fix the only 3 -Wcast-qual warnings * Fixed the only -Wsometimes-uninitialized warning
* Many clang -Wextra-semi-stmt fixes (#2537)Sean McBride2023-06-1633-114/+109
| | | | | * Adds semicolons to function-like macros * Adds a do..while(0) loop to some macros * Removes semicolons when inappropriate, especially H5E_TRY_BEGIN/END
* Add h5copy help test and verify consistency (#2902)Allen Byrne2023-05-1710-6/+178
| | | * Add autotools test for help
* Remove "the the" from comments and docs (#2865)Dana Robinson2023-05-011-1/+1
|
* Fix ROS3 VFD anonymous credential usage with h5dump and h5ls (#2798)jhendersonHDF2023-04-242-4/+27
|
* Add no subsets option to h5diff like h5dump #2688 (#2756)Allen Byrne2023-04-1815-268/+196
|
* Comment cleanup (#2689)Quincey Koziol2023-04-1124-254/+2
| | | * Clean up content and redundant logging in comments.
* Remove dead code hidden behind #ifdef LATER (#2686)Dana Robinson2023-04-102-36/+0
|
* Fix #2598 sanitize leak (#2660)Allen Byrne2023-04-071-4/+4
|
* Make sure that ONLY_SHARED_LIBS option is correctly set (#2544)Allen Byrne2023-03-1323-58/+48
|
* GH issue #1142, print must have verbose on first (#2540)Allen Byrne2023-03-131-4/+6
|
* Check for overflow when calculating on-disk attribute data size (#2459)Egbert Eich2023-03-023-0/+10
| | | | | | | | | | | | | | | | | * Remove duplicate code Signed-off-by: Egbert Eich <eich@suse.com> * Add test case for CVE-2021-37501 Bogus sizes in this test case causes the on-disk data size calculation in H5O__attr_decode() to overflow so that the calculated size becomes 0. This causes the read to overflow and h5dump to segfault. This test case was crafted, the test file was not directly generated by HDF5. Test case from: https://github.com/ST4RF4LL/Something_Found/blob/main/HDF5_v1.13.0_h5dump_heap_overflow.md
* Fix uninitialized variable in pio_engine.c (#2463)Dana Robinson2023-02-131-11/+11
|
* Fix a possible uninitialized variable in pio_perf (#2461)Dana Robinson2023-02-131-1/+1
|
* Determine if native connector is terminal (#2397)Quincey Koziol2023-01-092-8/+12
| | | | | | | | | | | | | | | | | | | | | | | * Correct concurrency bugs when running tests, along with a bugfix & small warning cleanup. * Committing clang-format changes * Allow spaces (and tabs) in VOL connector info string from environment variable. * Parse connector name from HDF5_PLUGIN_PATH environment variable better * Correct H5VLquery_optional to use H5VL routine instead of H5I. Also add an error message to the failure return value from not finding a plugin. * Play nice with existing plugin paths * Use API routine to determine if native connector is terminal. * Committing clang-format changes Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: AWS ParallelCluster user <ec2-user@ip-10-0-0-65.us-east-2.compute.internal> Co-authored-by: Koziol <qkoziol@88665a374c70.ant.amazon.com>