Autodesk / Autodesk/AutodeskMachineControlFramework

XML Handler

Abierto
#62 0 comentarios 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
C++
Estrellas
46
Forks
32
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

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

Guía de contribución

Abrir la guía de contribución

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
cpp, xml
Área
backend
Tipo de issue
Error
Dificultad
4/5
Tiempo estimado
3-5 días
Estado de actividad
Estancado
Claridad
Bastante claro
Aptitud para principiantes
35/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.