Skip to content

Bug that leads to crash #140

@Battlepillars

Description

@Battlepillars

Calling getScanDataWithIntervalHq will lead to a crash when there are more then 0 but less then buffersize elements available.

Here
https://github.com/Slamtec/rplidar_sdk/blame/99478e5fb90de3b4a6db0080acacd373f8b36869/sdk/src/sl_lidar_driver.cpp#L220C31-L220C31

it will keep popping the _data_queue without checking if it is empty.

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