Skip to content

[BUG] M33 ("Get Long Path") crashes firmware if no parameter provided #21852

@theomega

Description

@theomega

Did you test the latest bugfix-2.0.x code?

Yes, and the problem still exists.

Bug Description

The M33 command, according to the documentation requires a parameter. If this parameter is provided, the command works fine.

BUT: If you forget the provide the parameter, the firmware crashes.

This seems to be a null pointer the source code assumes that the parameter is there and then most likely crashes.

Bug Timeline

Should have been the case since the M33 Command was introduced.

Expected behavior

Error message is printed.

Actual behavior

Firmware crashes

Steps to Reproduce

  1. Have your firmware compiled with LONG_FILENAME_HOST_SUPPORT (otherwise, there is no M33 command)
  2. Execute M33

Version of Marlin Firmware

2.0.8

Printer model

Home Built

Electronics

FYSETC E4 board, based on ESP32

Add-ons

No response

Your Slicer

No response

Host Software

No response

Additional information & file uploads

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions