]> granicus.if.org Git - graphviz/commit
cgraph: remove 'itos'
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Tue, 26 Apr 2022 05:07:52 +0000 (22:07 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Thu, 28 Apr 2022 03:19:16 +0000 (20:19 -0700)
commitedea92223cadc27613b9955e865bdfc3dd684102
tree071e3337413592c15f0d3fb17f7fb6a2934a598a
parent2f6dfcda36ca6d674c33b4c889b276666ca0a1d7
cgraph: remove 'itos'

This function was unsafe to use in the way described. It relied on semantics
that are not guaranteed under C99. That is, the lifetime extension of a struct
member of an rvalue. This changes under C11 to something that would make this
not problematic. But it is unlikely Graphviz will be able to migrate to C11 in
the foreseeable future as MSVC is lacking C11 support.

Gitlab: closes #2229
CHANGELOG.md
lib/cgraph/itos.h
lib/cgraph/test_itos.c [deleted file]
rtest/test_itos.py [deleted file]