Skip to content

bencode parsing issues #597

Closed
Closed
@hugoduncan

Description

@hugoduncan

I'm seeing some bencode parsing issues. This occurs when processing a stacktrace message following an exception thrown via load-file (though I don't think that is relevant).

This sometimes appears as:

Error: (scan-error "Unbalanced parentheses" 16597 1)

and sometimes as:

Error: (wrong-type-argument integer-or-marker-p nil)

In each case the problem seems to be related to emacs trying to process a bencoded message that has a length of 4096 bytes and is incomplete. The first error above seems to occur when the trucation occurs within a bencode header, the second when the trunction occurs in the message data.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions