mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-10-10 01:01:57 +00:00
A `<metadata>` element without a `type` attribute makes `get_attribute()` return nullptr, which was then assigned to a `std::string` and read as a C string. Check it the way the sibling metadata handler already does, and stop the parse. Regression test in `tests/libslic3r/test_amf.cpp`, a new file: the suite had no AMF test at all.
OrcaSlicer tests
Building, running and writing tests is documented on the wiki, under How to Test.
Two files here rather than there, because coding agents only read what is in the repository: