[llvm-bugs] [Bug 39701] New: [XRay] graph output: DOT labels should be sanitized.

via llvm-bugs llvm-bugs at lists.llvm.org
Sun Nov 18 06:50:39 PST 2018


https://bugs.llvm.org/show_bug.cgi?id=39701

            Bug ID: 39701
           Summary: [XRay] graph output: DOT labels should be sanitized.
           Product: XRay
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Tools
          Assignee: dberris at google.com
          Reporter: lebedev.ri at gmail.com
                CC: llvm-bugs at lists.llvm.org

https://www.graphviz.org/doc/info/lang.html
... the special XML escape sequences for ", &, <, and > may be necessary in
order to embed these characters in attribute values or raw text. ...
... However, if used as a label attribute, it is interpreted specially and must
follow the syntax for HTML-like labels.

https://www.graphviz.org/doc/info/shapes.html#html
As HTML strings are processed like HTML input, any use of the ", &, <, and >
characters in literal text or in attribute values need to be replaced by the
corresponding escape sequence. For example, if you want to use & in an href
value, this should be represented as &.



"<" is very common in function names due to templates.
When i try to process the "graph" output with dot tool, it complains about all
these labels.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20181118/39ebf289/attachment.html>


More information about the llvm-bugs mailing list