Skip to content

Error occur when record's REC_LEN does not match the total length of fields in this record #27

@showjim

Description

@showjim

I have some STDF files that REC_LEN of a record greater than the total length of fields in this record. This would lead to error when parse the first field of next record. After debugging, I found the cause, then I change the function parse_records in IO module like below:
Screen Shot 2021-02-07 at 7 01 45 PM
I read the whole bytes stream in this record, then process the parse work just with it, and restore at the end. By applying this, I can walk-around this kind of error.

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