Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(Upstream) lvtinydom: fix memory leaks
Direct leak of 128 byte(s) in 2 object(s) allocated from: 0 in operator new(unsigned long) (libasan.so.6+0xb0087) 1 in ldomNode::modify() lvtinydom.cpp:19148 2 in ldomNode::removeChild(unsigned int) lvtinydom.cpp:18643 3 in ldomNode::removeChildren(int, int) lvtinydom.cpp:5845 4 in ldomNode::autoboxChildren(int, int, bool) lvtinydom.cpp:5995 5 in ldomNode::initNodeRendMethod() lvtinydom.cpp:6842 6 in ldomElementWriter::onBodyExit() lvtinydom.cpp:7815 7 in ldomElementWriter::~ldomElementWriter() lvtinydom.cpp:7955 8 in ldomDocumentWriterFilter::popUpTo(ldomElementWriter*, unsigned short, int) lvtinydom.cpp:13895 9 in ldomDocumentWriterFilter::AutoOpenClosePop(int, unsigned short) lvtinydom.cpp:14126 10 in ldomDocumentWriterFilter::OnTagClose(char32_t const*, char32_t const*, bool) lvtinydom.cpp:14657 11 in LVXMLParser::Parse() lvxmlparser.cpp:278 Direct leak of 64 byte(s) in 1 object(s) allocated from: 0 in operator new(unsigned long) (libasan.so.6+0xb0087) 1 in ldomNode::modify() lvtinydom.cpp:19148 2 in ldomNode::insertChildElement(unsigned int, unsigned short, unsigned short) lvtinydom.cpp:18534 3 in ldomNode::autoboxChildren(int, int, bool) lvtinydom.cpp:5974 4 in ldomNode::initNodeRendMethod() lvtinydom.cpp:6842 5 in ldomElementWriter::onBodyExit() lvtinydom.cpp:7815 6 in ldomElementWriter::~ldomElementWriter() lvtinydom.cpp:7955 7 in ldomDocumentWriterFilter::popUpTo(ldomElementWriter*, unsigned short, int) lvtinydom.cpp:13895 8 in ldomDocumentWriterFilter::AutoOpenClosePop(int, unsigned short) lvtinydom.cpp:14126 9 in ldomDocumentWriterFilter::OnTagClose(char32_t const*, char32_t const*, bool) lvtinydom.cpp:14657 Direct leak of 64 byte(s) in 1 object(s) allocated from: 0 in operator new(unsigned long) (libasan.so.6+0xb0087) 1 in tinyNodeCollection::allocTinyElement(ldomNode*, unsigned short, unsigned short) lvtinydom.cpp:16424 2 in ldomNode::insertChildElement(unsigned int, unsigned short, unsigned short) lvtinydom.cpp:18538 3 in ldomNode::autoboxChildren(int, int, bool) lvtinydom.cpp:5974 4 in ldomNode::initNodeRendMethod() lvtinydom.cpp:6842 5 in ldomElementWriter::onBodyExit() lvtinydom.cpp:7815 6 in ldomElementWriter::~ldomElementWriter() lvtinydom.cpp:7955 7 in ldomDocumentWriterFilter::popUpTo(ldomElementWriter*, unsigned short, int) lvtinydom.cpp:13895 8 in ldomDocumentWriterFilter::AutoOpenClosePop(int, unsigned short) lvtinydom.cpp:14126 9 in ldomDocumentWriterFilter::OnTagClose(char32_t const*, char32_t const*, bool) lvtinydom.cpp:14657 10 in LVXMLParser::Parse() lvxmlparser.cpp:278 11 in LVHTMLParser::Parse() lvhtmlparser.cpp:157 Direct leak of 144 byte(s) in 2 object(s) allocated from: 0 in operator new(unsigned long) (libasan.so.6+0xb0087) 1 in CCRTable::LookupElem(ldomNode*, int, int) (cr3qt/cr3+0x1f6681a) 2 in CCRTable::LookupElem(ldomNode*, int, int) (cr3qt/cr3+0x1f65cb3) 3 in CCRTable::CCRTable(ldomNode*, int, bool, int, int, bool, bool, int, bool) lvrend.cpp:2243 4 in renderTable(LVRendPageContext&, ldomNode*, int, int, int, bool, int, int&, int, bool, bool, bool) lvrend.cpp:2276 5 in renderBlockElementEnhanced(FlowState*, ldomNode*, int, int, unsigned int) lvrend.cpp:7639 6 in renderBlockElementEnhanced(FlowState*, ldomNode*, int, int, unsigned int) lvrend.cpp:7860 7 in renderBlockElement(LVRendPageContext&, ldomNode*, int, int, int, int, int, int, int*, unsigned int) lvrend.cpp:8393 8 in renderBlockElement(LVRendPageContext&, ldomNode*, int, int, int, int, int, int, int*) lvrend.cpp:8409 9 in LVFormatter::measureText() lvtextfm.cpp:2045 10 in LVFormatter::processParagraph(int, int, bool) lvtextfm.cpp:3809 11 in LVFormatter::splitParagraphs() lvtextfm.cpp:4461 12 in LVFormatter::format() lvtextfm.cpp:4508 13 in LFormattedText::Format(unsigned short, unsigned short, int, int, int, bool, BlockFloatFootprint*) lvtextfm.cpp:4612 14 in ldomNode::renderFinalBlock(LVRef<LFormattedText>&, RenderRectAccessor*, int, BlockFloatFootprint*) lvtinydom.cpp:19074 15 in renderBlockElementEnhanced(FlowState*, ldomNode*, int, int, unsigned int) lvrend.cpp:8167 Indirect leak of 896 byte(s) in 28 object(s) allocated from: 0 in __interceptor_realloc (libasan.so.6+0xaea88) 1 in lxmlAttribute* cr_realloc<lxmlAttribute>(lxmlAttribute*, unsigned long) (cr3qt/cr3+0x1c890d6) 2 in ldomAttributeCollection::set(unsigned short, unsigned short, unsigned int) lvtinydom.cpp:3933 3 in ldomNode::setAttributeValue(unsigned short, unsigned short, char32_t const*) lvtinydom.cpp:17001 4 in fixupMathML mathml.cpp:2157 5 in fixupMathMLRecursive mathml.cpp:1737 6 in fixupMathMLRecursive mathml.cpp:1734 14 in fixupMathMLRecursive mathml.cpp:1734 15 in fixupMathMLMathElement(ldomNode*) mathml.cpp:1708 16 in ldomNode::initNodeRendMethod() lvtinydom.cpp:7777 17 in ldomElementWriter::onBodyExit() lvtinydom.cpp:7819 18 in ldomElementWriter::~ldomElementWriter() lvtinydom.cpp:7959
- Loading branch information