// create and hold a reference to XToolkit here to avoid the lsan warning about its leak // due to getting created in the unusual case of no vcl main loop static css::uno::Reference<css::awt::XToolkit> xTk(
comphelper::getProcessServiceFactory()->createInstance("com.sun.star.awt.Toolkit"),
css::uno::UNO_QUERY_THROW);
// an effort to only generate valid xml, in this fuzzer we only really care // about the deeper levels of turning valid input into writer layout and // pdf export
extern"C"int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size)
{
SvMemoryStream aStream(const_cast<uint8_t*>(data), size, StreamMode::READ); bool bFODTLoaded = TestPDFExportFODT(aStream); // if the fodt didn't load then reject so that input will not be added to the corpus // we're not interested in input that doesn't go on to exercise the pdf export return bFODTLoaded ? 0 : -1;
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.