Skip to content

AccessViolation at xlsparse.c:438 #10

@yangzao

Description

@yangzao

An AccessViolation bug when testing xls2csv 0.95 on x86-64 Ubuntu 22.04.

Files:

5.zip

Commandline:

./xls2csv ./5

Crash line:

    "    434    \t/* \tfor(i=0;i<20;i++) */",
    "    435    \t/* \t\tfprintf(stderr,\"%02x \",(*src)[i]); */",
    "    436    \t\t/* \tfprintf(stderr,\"\\n\"); */",
    "    437    ",
    "--->438    \tflags = *(*src+1+offset);",
    "    439    \tif (! ( flags == 0 || flags == 1 || flags == 8 || flags == 9 ||",
    "    440    \t\t\t\t\tflags == 4 || flags == 5 || flags == 0x0c || flags == 0x0d ) ) {",
    "    441    \t\tcount=**src;",
    "    442    \t\tflags = *(*src+offset);",
    "    443    \t\toffset --;"

Stacktrace:

    "    #0 0x55555564318e in copy_unicode_string catdoc/src/xlsparse.c:438:10",
    "    #1 0x555555642f4d in parse_sst catdoc/src/xlsparse.c:775:19",
    "    #2 0x55555564153f in process_item catdoc/src/xlsparse.c:142:3",
    "    #3 0x55555564113b in do_table catdoc/src/xlsparse.c:116:3",
    "    #4 0x55555563e8ba in main catdoc/src/xls2csv.c:167:7",

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