Autodesk / Autodesk/AutodeskMachineControlFramework
XML Handler
- Dominant language
- C++
- Stars
- 46
- Forks
- 32
- PR merge metrics
- No merged PRs in 30d
Description
A number of issues with the XML functions in the state environment.
- Successive "RemoveAttribute" calls result in:
"
Exception thrown: read access violation.
**this** was 0x68.
"
- SaveToString calls once an attribute has been removed and then added throws the same error
- SaveToString calls can duplicate "xmlns=..."
This error can be repeated by including an XML file in the resource folder and using this code:
auto xml_string = pStateEnvironment->LoadResourceString("test");
auto xml_object = pStateEnvironment->ParseXMLString(xml_string);
auto xml_string_back = xml_object->SaveToString(false);
Contributor guide
Research direction
Start by reproducing the report with an XML resource and the LoadResourceString, ParseXMLString, RemoveAttribute, and SaveToString calls shown in the issue. Trace successive attribute removal and remove-then-add serialization, then verify that SaveToString no longer crashes and does not duplicate xmlns entries.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp, xml
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100