Skip to content

Access Violation in Decode #100

@rjmatthews62

Description

@rjmatthews62

I'm getting an Access violation in:
Lib\Classes\2D Barcodes\Decoder\ZXing.Datamatrix.Internal.Decoder.pas

function TDataMatrixDecoder.decode(bits: TBitMatrix): TDecoderResult;

It's happening when the finally section frees DataBlock

And this is happening because there are some situations where Datablock is undefined at that point.
The fix is the initialize DataBlock to nil at the top of the function.

Issue is occurring in Delphi 10.2, Win 32, VCL

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions