mirror of
https://github.com/HDFGroup/hdf5.git
synced 2026-09-25 04:09:44 +03:00
A declared cd_nelmts with no values following it (e.g. UD=<filtn>,<flag>,1) was never committed to filt->cd_nelmts: the trailing token (no comma after it) was always treated as a value, never checked against the l/f/p pending flags the way the comma-triggered branch does. h5repack's own validation then silently passed since cd_nelmts stayed at its default 0, and the mismatch was only ever caught by coincidence when the underlying filter plugin did its own internal cd_values check (issue #6462). Commit the trailing token to whichever UD field is still pending, mirroring the comma-triggered branch exactly. Co-authored-by: H. Joe Lee <hyoklee@hdfgroup.org>