Autodesk / Autodesk/AutodeskMachineControlFramework

XML Handler

未關閉
#62 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
C++
星號
46
分支
32
PR 合併指標
30 天內沒有已合併 PR

描述

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);

貢獻指南

開啟貢獻指南

研究方向

首先,使用 issue 中所示的 XML 資源以及對 LoadResourceString、ParseXMLString、RemoveAttribute 和 SaveToString 的呼叫來重現報告。追蹤連續移除屬性以及移除後再新增的序列化過程,然後驗證 SaveToString 不再當機,也不會重複產生 xmlns 項目。

由索引模型根據 Issue 內容生成。

評估

技術堆疊
cpp, xml
領域
backend
Issue 類型
缺陷
難度
4/5
預估耗時
3-5 天
活躍度
停滯
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。