Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix incorrect option mask returned by SDgetcompinfo #476

Merged
merged 7 commits into from
Feb 6, 2024

Conversation

bmribler
Copy link
Collaborator

@bmribler bmribler commented Feb 1, 2024

A special bit, SZ_H4_REV_2, was used to indicate that the szip info was stored in a new way. This bit was set in the options_mask field of the szip info struct. As a result, the value of options_mask became incorrect.

This PR removed the special bit from the options_mask before returning it to the application. This change does not affect the data format in the file.

(JIRA issue HDFFR-82)

Description:
    A special bit, SZ_H4_REV_2, was used to indicate that the szip info
    was stored in a new way.  This bit was set in the options_mask field
    of the szip info struct.  As a result, the value of options_mask became
    incorrect.

    This PR removed the special bit from the options_mask before returning it
    to the application.  This change does not affect the data format in the
    file.
@derobins
Copy link
Member

derobins commented Feb 1, 2024

Definitely need to un-uncomment the mfhdf/fortran/tszip.f code around line 280

@bmribler bmribler marked this pull request as draft February 1, 2024 05:36
@derobins derobins added Component - C Library Core C library issues Type - Bug Please report security issues to help@hdfgroup.org instead of creating an issue on GitHub Priority - 2. Medium ⏹ It would be nice to have this in the next release labels Feb 1, 2024
@bmribler bmribler marked this pull request as ready for review February 2, 2024 02:00
@bmribler bmribler marked this pull request as draft February 2, 2024 05:11
@bmribler bmribler closed this Feb 2, 2024
@bmribler
Copy link
Collaborator Author

bmribler commented Feb 2, 2024

Need to rework

@bmribler bmribler reopened this Feb 2, 2024
@bmribler bmribler marked this pull request as ready for review February 2, 2024 21:36
@bmribler
Copy link
Collaborator Author

bmribler commented Feb 3, 2024

Sorry for the size of this PR. HDFFR-82 only reported SDgetcompinfo but it turned out GRgetcompinfo and SDgetchunkinfo were affected by the same bug.

@bmribler bmribler marked this pull request as draft February 5, 2024 20:17
@bmribler
Copy link
Collaborator Author

bmribler commented Feb 5, 2024

Additional work for Java and Fortran.
Wrong PR. Should be #477

@bmribler bmribler marked this pull request as ready for review February 5, 2024 22:27
@lrknox lrknox merged commit eadd015 into HDFGroup:master Feb 6, 2024
34 checks passed
@bmribler bmribler deleted the fix_HDFFR_82 branch March 9, 2024 06:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component - C Library Core C library issues Priority - 2. Medium ⏹ It would be nice to have this in the next release Type - Bug Please report security issues to help@hdfgroup.org instead of creating an issue on GitHub
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants