]> git.siccegge.de Git - frida/frida.git/commitdiff
Properly HTML Escape function names
authorChristoph Egger <Christoph.Egger@cs.fau.de>
Mon, 23 Feb 2015 15:43:51 +0000 (16:43 +0100)
committerChristoph Egger <Christoph.Egger@cs.fau.de>
Mon, 23 Feb 2015 15:43:51 +0000 (16:43 +0100)
src/gui/widgets/BasicBlockWidget.cxx

index f66a575167b83fb25d1cc12b4fd06d5975b583a0..1f34255343aafbf12d2d80c1e2d2169b83b31a87 100644 (file)
@@ -144,7 +144,7 @@ void BasicBlockWidget::addItem(uint8_t* bytes, size_t num_bytes,
                        Function* fun = block->getManager()->getFunction(address);
 
                        if (fun) {
-                               line = line.split(" ")[0] + " " + fun->getName().c_str();
+                               line = line.split(" ")[0] + " " + QString(fun->getName().c_str()).toHtmlEscaped();
                                LOG4CXX_DEBUG(logger, "Naming function at " << address << " " << fun->getName());
                        }
                }