/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* * This file is part of the LibreOffice project. * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ #include #include #include "commonfuzzer.hxx" #include #include #include extern "C" { void * com_sun_star_i18n_LocaleDataImpl_get_implementation( void *, void * ); void * com_sun_star_i18n_BreakIterator_Unicode_get_implementation( void *, void * ); void * com_sun_star_i18n_BreakIterator_get_implementation( void *, void * ); void * com_sun_star_i18n_NativeNumberSupplier_get_implementation( void *, void * ); void * com_sun_star_i18n_NumberFormatCodeMapper_get_implementation( void *, void * ); } const lib_to_factory_mapping * lo_get_factory_map(void) { static lib_to_factory_mapping map[] = { { 0, 0 } }; return map; } const lib_to_constructor_mapping * lo_get_constructor_map(void) { static lib_to_constructor_mapping map[] = { { "com_sun_star_i18n_LocaleDataImpl_get_implementation", com_sun_star_i18n_LocaleDataImpl_get_implementation }, { "com_sun_star_i18n_BreakIterator_Unicode_get_implementation", com_sun_star_i18n_BreakIterator_Unicode_get_implementation }, { "com_sun_star_i18n_BreakIterator_get_implementation", com_sun_star_i18n_BreakIterator_get_implementation }, { "com_sun_star_i18n_NativeNumberSupplier_get_implementation", com_sun_star_i18n_NativeNumberSupplier_get_implementation }, { "com_sun_star_i18n_NumberFormatCodeMapper_get_implementation", com_sun_star_i18n_NumberFormatCodeMapper_get_implementation }, { 0, 0 } }; return map; } extern "C" void* lo_get_custom_widget_func(const char*) { return nullptr; } extern "C" int LLVMFuzzerInitialize(int *argc, char ***argv) { TypicalFuzzerInitialize(argc, argv); return 0; } extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) { SvMemoryStream aStream(const_cast(data), size, StreamMode::READ); Graphic aGraphic; (void)ImportDxfGraphic(aStream, aGraphic); return 0; } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ 5-testflight LibreOffice 核心代码仓库文档基金会
summaryrefslogtreecommitdiff
AgeCommit message (Expand)Author
2015-11-18com::sun::star->css in vcl/Noel Grandin
2015-11-10loplugin:nullptr (automatic rewrite)Stephan Bergmann
2015-10-07loplugin:mergeclassesNoel Grandin
2015-09-30Fix typosAndrea Gelmini
2015-09-29Renamed wrongly prefixed boolean variablesStefan Heinemann
2015-09-29vcl: replace alloca() with std::unique_ptrMichael Stahl
2015-08-20loplugin:cstylecastNoel Grandin
2015-08-20more config skipping stuff and a tester toolCaolán McNamara
2015-06-02loplugin:cstylecast: deal with those that are (technically) const_castStephan Bergmann
2015-05-22loplugin:constantfunctionNoel Grandin
2015-05-05Use typed Timer::SetTimeoutHdl LinkStephan Bergmann
2015-04-01loplugin:staticfunctionNoel Grandin
2015-03-28Clean up C-style casts from pointers to voidStephan Bergmann
2015-03-26const_cast: convert some C-style casts and remove some redundant onesStephan Bergmann
2015-02-16boost::foo_ptr->std::foo_ptrCaolán McNamara
2015-01-20Some more loplugin:cstylecast: vclStephan Bergmann
2015-01-02boost::unordered_map->std::unordered_mapCaolán McNamara
2014-11-14fdo#86023 - O[U]String needs a 'clear' methodBrij Mohan Lal Srivastava
2014-11-06Revert "use the new OUString::fromUtf8 method"Stephan Bergmann
2014-11-06use the new OUString::fromUtf8 methodNoel Grandin
2014-11-01coverity#735338 Unchecked return valueCaolán McNamara
2014-09-23fdo#82577: Handle WindowNoel Grandin
2014-04-02Kill superfluous vertical whitespaceTor Lillqvist
2014-04-01Explicitly mark overriding destructors as "virtual"Stephan Bergmann
2014-03-26First batch of adding SAL_OVERRRIDE to overriding function declarationsStephan Bergmann
2014-03-12Resolves: fdo#50855 Nimbus Sans L missing stylesCaolán McNamara
2014-02-26Remove visual noise from vclAlexander Wilms
2014-02-19unotools: sal_Bool -> boolStephan Bergmann
2014-01-28bool improvementsStephan Bergmann
2014-01-17bool improvementsStephan Bergmann
2014-01-16Remove defines now that fontconfig baseline has been updatedChris Sherlock
2013-12-20typo fixesAndras Timar
2013-12-11fontmanager.hxx is private to vclTor Lillqvist