Autodesk / Autodesk/AutodeskMachineControlFramework

XML Handler

オープン
#62 コメント 0 件 リアクション 0 件 担当者 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 を短くまとめたダイジェスト。