Skip to content

fix #9: QR-codes consisting of numerics only are failed to scan#10

Merged
Spelt merged 1 commit intoSpelt:masterfrom
ashumkin:master
Mar 2, 2016
Merged

fix #9: QR-codes consisting of numerics only are failed to scan#10
Spelt merged 1 commit intoSpelt:masterfrom
ashumkin:master

Conversation

@ashumkin
Copy link
Copy Markdown
Contributor

@ashumkin ashumkin commented Mar 1, 2016

QR-code for numeric-only (e.g. "12" string http://qrcoder.ru/code/?12&10&0)
is not recognized with the test app.

Unit-test for this image causes AV.
The reason is in TDecoderResult.Destroy calls ByteSegments.Clear without
testing ByteSegments for nil. But ByteSegments is nil when QR-code is
numeric only.

Fix is to test ByteSegments for nil before calling ByteSegments.Clear.

Known issues: numerics of one digit is not still recognized.

Signed-off-by: Alexey Shumkin Alex.Crezoff@gmail.com

QR-code for numeric-only (e.g. "12" string http://qrcoder.ru/code/?12&10&0)
is not recognized with the test app.

Unit-test for this image causes AV.
The reason is in TDecoderResult.Destroy calls ByteSegments.Clear without
testing ByteSegments for nil. But ByteSegments is nil when QR-code is
numeric only.

Fix is to test ByteSegments for nil before calling ByteSegments.Clear.

Known issues: numerics of one digit is not still recognized.

Signed-off-by: Alexey Shumkin <Alex.Crezoff@gmail.com>
Spelt added a commit that referenced this pull request Mar 2, 2016
fix #9: QR-codes consisting of numerics only are failed to scan
@Spelt Spelt merged commit a380968 into Spelt:master Mar 2, 2016
@Spelt
Copy link
Copy Markdown
Owner

Spelt commented Mar 2, 2016

Thank!

EguitarRed added a commit to EguitarRed/ZXing.Delphi that referenced this pull request Dec 13, 2023
QRCode that contains 'Spelt#10' was incorrectly changed by Spelt#13.
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 this pull request may close these issues.

2 participants