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

Incorrect NORMALIZED format result from interpretDFD #738

Closed
MarkCallow opened this issue Jul 12, 2023 · 0 comments · Fixed by #739
Closed

Incorrect NORMALIZED format result from interpretDFD #738

MarkCallow opened this issue Jul 12, 2023 · 0 comments · Fixed by #739

Comments

@MarkCallow
Copy link
Collaborator

The test at line 130 in interpretdfd.c is using the counter from a previous loop. The counter in the loop this is in is i.

        if (KHR_DFDSVAL(BDFDB, sampleCounter, BITLENGTH) > 0)
            hasNormalized |= isNormalized;

The fix is s/asampleCounter/i/.

sampleCounter, having been used in a previous loop, always equals the number of samples. Therefore I am surprised this error has not been causing crashes.

MarkCallow added a commit that referenced this issue Jul 13, 2023
KaperD pushed a commit to KaperD/KTX-Software that referenced this issue Feb 21, 2024
KaperD pushed a commit to KaperD/KTX-Software that referenced this issue Feb 22, 2024
KaperD pushed a commit to KaperD/KTX-Software that referenced this issue Feb 22, 2024
KaperD pushed a commit to KaperD/KTX-Software that referenced this issue Feb 22, 2024
KaperD pushed a commit to KaperD/KTX-Software that referenced this issue Feb 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant