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

Avoid decoding stacked row 1 of N independently #1693

Merged
merged 2 commits into from Sep 16, 2023

Conversation

gredler
Copy link
Contributor

@gredler gredler commented Sep 15, 2023

When processing RSS Expanded stacked symbols, in some rare cases the first row processed looks like an independent single-row barcode based on checksum calculations. However, this is obviously not the case when the allowed finder pattern sequences are taken into account.

This PR adds a check to the finder pattern sequence as a last step before deciding to return the current (first processed) row as a fully, independently decoded barcode. I believe this also addresses a long-standing TODO in the code, now removed as part of this PR.

This PR includes a test which fails without the fix.

@gredler
Copy link
Contributor Author

gredler commented Sep 16, 2023

@srowen I think this one's good now, let me know if you need anything else. Thanks!

@srowen srowen merged commit 2dd6cb4 into zxing:master Sep 16, 2023
5 checks passed
@srowen srowen added this to the 3.5.3 milestone Sep 16, 2023
@gredler
Copy link
Contributor Author

gredler commented Sep 18, 2023

@srowen Thanks for the quick merges on these last few PRs! Fuzzing DataBar Expanded against Okapi was breaking within seconds prior to these fixes, but I can now run millions of tests without any issues, so it looks like it's much more robust now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

None yet

2 participants