hdf5: remove irrelevant code (#9713)

Signed-off-by: David Korczynski <david@adalogics.com>
This commit is contained in:
DavidKorczynski 2023-02-15 12:16:32 +00:00 committed by GitHub
parent 34a0c5f56c
commit a74e976d46
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 6 deletions

View File

@ -14,6 +14,8 @@ limitations under the License.
extern int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size)
{
// Some old logic with regards to skipping first byte. Leaving it here
// to avoid affecting the clusterfuzz-generated corpus.
if (size == 0) {
return 0;
}
@ -31,12 +33,7 @@ extern int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size)
fwrite(data, size, 1, fp);
fclose(fp);
if (decider % 1 == 0) {
H5Fopen(filename, H5F_ACC_RDONLY, H5P_DEFAULT);
}
else {
H5Dopen2(filename, "Dataset name", H5P_DEFAULT);
}
H5Fopen(filename, H5F_ACC_RDONLY, H5P_DEFAULT);
return 0;
}