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 摘要。