Skip to content

Incorrect decoding of LSTAT message in python as PD #271

@rm5248

Description

@rm5248

Describe the bug
When a CP sends an LSTAT message to a python PD, the python code will have a very long report entry. When a CP sends a PD an LSTAT message, there is no data in this message, but libosdp is assuming that there is. This results in reading junk data.

Expected behavior
The PD message should not have a report entry

Observed behavior
A description of what happened.

A Comprehensive Log file

OSDP: PD-0: 2025-12-22T22:16:52Z   osdp_pd.c:732  [DEBUG] CMD: LSTAT(64) REPLY: LSTATR(48)
PD: Received command: {'command': 9, 'type': 2, 'report': b'\xcc\x89$\xac2\x7f\x00\x .... (data continues on here for many many bytes)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions