Skip to content

ber_decode successful, but memory seems corrupted #505

Description

@mzamponi-dermalog

I am using ber_decode() successfully (returncode 0) to decode a der encoded file in Visual Studio 2022.
After decoding, I am calling asn_fprint() to print the entire to stdout. No problems, all data is successfully decoded and printed.

But in the "Watch" windows of the debugger of VS2022, this expression repBlock->captureDateTimeBlock != nullptr evaluates to true while an if statement with the same expression evaluates it to false.
What could be the cause?

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