An empty node id is now treated as if id was missing altogether.
Gitlab: fixes #2092
- gvpr index function produces wrong results #2211. This was a regression in
Graphviz 2.47.0.
- Error on more than 128 cluster subgraphs #2080
+- `dot2gxl` no longer crashes on input `<node id="">` #2092
### Removed
const char *attrname;
attrname = atts[pos];
- bind_node(attrname);
+ if (attrname != NULL && strcmp(attrname, "") != 0) {
+ bind_node(attrname);
- pushString(&ud->elements, attrname);
+ pushString(&ud->elements, attrname);
+ }
}
} else if (strcmp(name, "edge") == 0) {
@pytest.mark.skipif(shutil.which("dot2gxl") is None,
reason="dot2gxl not available")
-@pytest.mark.xfail() # FIXME
def test_2092():
"""
an empty node ID should not cause a dot2gxl NULL pointer dereference