Skip to content

Commit

Permalink
Changes for sanitize=address (#312)
Browse files Browse the repository at this point in the history
* OESS-98 convert plugin option to FetchContent, add tests

* Fixes for pkcfg files because of plugin option

* OESS-98 fix tools test for plugins

* Keep doxygen comments under 100 chars long - format hint

* Whitespace

* HDFFV-11144 - Reclassify CMake messages

* HDFFV-11099/11100 added help text

* Reworked switch statement to compare string instead

* Fix typo

* Update CDash mode

* Correct name of threadsafe

* Correct option name

* Undo accidental commit

* Note LLVM 10 to 11 format default changes

* Update format plugin

* Undo clang-format version 11 changes

* One more correction

* Update supported platforms

* Revert whitespace changes

* Correct whitespace

* Changes from PR#3
  • Loading branch information
byrnHDF authored Feb 5, 2021
1 parent a06693b commit b3934e9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion c++/test/tvlstr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ test_vlstring_dataset()
// Test scalar type dataset with 1 value.
dset1 = root.createDataSet("test_scalar_small", vlst, ds_space);

dynstring_ds_write = (char *)HDcalloc(1, sizeof(char));
dynstring_ds_write = (char *)HDcalloc(2, sizeof(char));
HDmemset(dynstring_ds_write, 'A', 1);

// Write data to the dataset, then read it back.
Expand Down
2 changes: 1 addition & 1 deletion hl/c++/examples/ptExampleFL.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ main(void)
if (err < 0)
fprintf(stderr, "Error getting packet count.");

printf("Number of packets in packet table after five appends: %d\n", count);
printf("Number of packets in packet table after five appends: %llu\n", count);

/* Initialize packet table's "current record" */
ptable.ResetIndex();
Expand Down
2 changes: 1 addition & 1 deletion hl/test/test_table.c
Original file line number Diff line number Diff line change
Expand Up @@ -1272,7 +1272,7 @@ test_table(hid_t fid, int do_write)
/* write the new longitude and latitude information to all the records */
nfields = 2;
start = 0;
nrecords = NRECORDS;
nrecords = NRECORDS_ADD;
if (H5TBwrite_fields_index(fid, "table12", nfields, field_index_pos, start, nrecords,
sizeof(position_t), field_offset_pos, field_sizes_pos, position_in) < 0)
goto out;
Expand Down

0 comments on commit b3934e9

Please sign in to comment.