theZiz / aha

Ansi HTML Adapter
Other
915 stars 88 forks source link

aha seems to escape it's own generated html #70

Closed flip111 closed 4 years ago

flip111 commented 4 years ago

input file gdb.txt

command:

aha --title "PHP core dump backtrace" --word-wrap -f gdb.txt > gdb_color.html

part of output (browser)

#1  0x00005603b6cfddc7 in strx_printv (ccp=0x7ffd455f2964, buf=0x5603b94ba6f0 "P\227K\271\003V", 
    len=1, 
    format=0x7f0586f798a8 "<tr><th align='left' bgcolor='#f57900' colspan=\"5\"><span style='background-color: #cc0000; color: #fce94f; font-size: x-large;'>( ! )</span> %s: %s in %s on line <i>%d</i></th></tr>\n", ap=0x7ffd455f29a0) at /php-7.4.4/main/snprintf.c:1239

part of output (source)

#1  <span style="color:blue;">0x00005603b6cfddc7</span> in <span style="color:olive;">strx_printv</span> (<span style="color:teal;">ccp</span>=0x7ffd455f2964, <span style="color:teal;">buf</span>=0x5603b94ba6f0 &quot;P\227K\271\003V&quot;, 
    <span style="color:teal;">len</span>=1, 
    <span style="color:teal;">format</span>=0x7f0586f798a8 &quot;&lt;tr&gt;&lt;th align='left' bgcolor='#f57900' colspan=\&quot;5\&quot;&gt;&lt;span style='background-color: #cc0000; color: #fce94f; font-size: x-large;'&gt;( ! )&lt;/span&gt; %s: %s in %s on line &lt;i&gt;%d&lt;/i&gt;&lt;/th&gt;&lt;/tr&gt;\n&quot;, <span style="color:teal;">ap</span>=0x7ffd455f29a0) at <span style="color:green;">/php-7.4.4/main/snprintf.c</span>:1239
theZiz commented 4 years ago

Is your output the output in the browser or the raw html? Because for me everything looks as intended:

grafik

flip111 commented 4 years ago

Sorry no idea how this html got into the gdb.txt normally gdb does not output html. Maybe i ran aha twice or something.

theZiz commented 4 years ago

I like this kind of errors the most: When I have nothing to do. :D