aa78456748
* Update to version 1.12.3. * Drop upstreamed patches: Remove-duplicate-code.patch, H5O__pline_decode-Make-more-resilient-to-out-of-bounds-read.patch, H5O_dtype_decode_helper-Parent-of-enum-needs-to-have-same-size-as-enum-itself.patch, Pass-compact-chunk-size-info-to-ensure-requested-elements-are-within-bounds.patch, Make-sure-info-block-for-external-links-has-at-least-3-bytes.patch, Compound-datatypes-may-not-have-members-of-size-0.patch, H5IMget_image_info-H5Sget_simple_extent_dims-does-not-exceed-array-size.patch, Check-for-overflow-when-calculating-on-disk-attribute-data-size-2459.patch * New BuildRequires: hostname. * Work around an sed hack in upstream configure file by dropping "-Werror=return-type" from RPM %optflags. OBS-URL: https://build.opensuse.org/request/show/1173662 OBS-URL: https://build.opensuse.org/package/show/science/hdf5?expand=0&rev=174
27 lines
1.2 KiB
Diff
27 lines
1.2 KiB
Diff
From: Egbert Eich <eich@suse.com>
|
|
Date: Sun Oct 9 08:08:24 2022 +0200
|
|
Subject: Fix error message: not the name but the link information is parsed
|
|
Patch-mainline: Not yet
|
|
Git-repo: ssh://eich@192.168.122.1:/home/eich/sources/HPC/hdf5
|
|
Git-commit: 7b0b8bc5703ace47aec51d7f60c1149cd3e383b1
|
|
References:
|
|
|
|
Signed-off-by: Egbert Eich <eich@suse.com>
|
|
Signed-off-by: Egbert Eich <eich@suse.de>
|
|
---
|
|
src/H5Olink.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
Index: hdf5-1.12.3/src/H5Olink.c
|
|
===================================================================
|
|
--- hdf5-1.12.3.orig/src/H5Olink.c
|
|
+++ hdf5-1.12.3/src/H5Olink.c
|
|
@@ -244,7 +244,7 @@ H5O__link_decode(H5F_t *f, H5O_t H5_ATTR
|
|
/* Make sure that length doesn't exceed buffer size, which could
|
|
occur when the file is corrupted */
|
|
if (p + len > p_end)
|
|
- HGOTO_ERROR(H5E_OHDR, H5E_OVERFLOW, NULL, "name length causes read past end of buffer")
|
|
+ HGOTO_ERROR(H5E_OHDR, H5E_OVERFLOW, NULL, "link information length causes read past end of buffer")
|
|
|
|
if (NULL == (lnk->u.ud.udata = H5MM_malloc((size_t)len)))
|
|
HGOTO_ERROR(H5E_RESOURCE, H5E_NOSPACE, NULL, "memory allocation failed")
|