Skip to content

Parser bug with files larger than BUFSIZ #3

@JakobR

Description

@JakobR

There seems to be a bug in the S-expression parser. When the file to be read is larger than BUFSIZ bytes (which is 1024 on my system), I get the error SEXP_ERR_INCOMPLETE (in the sexp_errno variable).

I don't know how to properly fix it, but adding the lines

#undef BUFSIZ
#define	BUFSIZ	10240

after the includes in sexp.h makes the error disappear for my larger file.

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