diff options
author | Mohamad Chaarawi <chaarawi@hdfgroup.org> | 2016-02-18 20:50:37 (GMT) |
---|---|---|
committer | Mohamad Chaarawi <chaarawi@hdfgroup.org> | 2016-02-18 20:50:37 (GMT) |
commit | 70ad55b1052e018acd90b22ab44260a8a1721e0b (patch) | |
tree | 5211dad79d57dcc3875f443557918db8a1b5c6a6 /src/H5B2private.h | |
parent | b3df4e9c8d716db4ea2680f6bb4ac16d1084dea5 (diff) | |
download | hdf5-70ad55b1052e018acd90b22ab44260a8a1721e0b.zip hdf5-70ad55b1052e018acd90b22ab44260a8a1721e0b.tar.gz hdf5-70ad55b1052e018acd90b22ab44260a8a1721e0b.tar.bz2 |
[svn-r29150] fix for Jira issue 9670 - HDF5 segfaults on corrupted file.
Change compare callback in Btree2 class to correctly account for errors.
tested on bb-8.
Diffstat (limited to 'src/H5B2private.h')
-rw-r--r-- | src/H5B2private.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/H5B2private.h b/src/H5B2private.h index ff94680..b509869 100644 --- a/src/H5B2private.h +++ b/src/H5B2private.h @@ -90,7 +90,7 @@ struct H5B2_class_t { void *(*crt_context)(void *udata); /* Create context for other client callbacks */ herr_t (*dst_context)(void *ctx); /* Destroy client callback context */ herr_t (*store)(void *nrecord, const void *udata); /* Store application record in native record table */ - herr_t (*compare)(const void *rec1, const void *rec2); /* Compare two native records */ + herr_t (*compare)(const void *rec1, const void *rec2, int *result); /* Compare two native records */ herr_t (*encode)(uint8_t *raw, const void *record, void *ctx); /* Encode record from native form to disk storage form */ herr_t (*decode)(const uint8_t *raw, void *record, void *ctx); /* Decode record from disk storage form to native form */ herr_t (*debug)(FILE *stream, int indent, int fwidth, /* Print a record for debugging */ |