#! /bin/bash # Version: MPL 1.1 / GPLv3+ / LGPLv3+ # # The contents of this file are subject to the Mozilla Public License Version # 1.1 (the "License"); you may not use this file except in compliance with # the License or as specified alternatively below. You may obtain a copy of # the License at http://www.mozilla.org/MPL/ # # Software distributed under the License is distributed on an "AS IS" basis, # WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License # for the specific language governing rights and limitations under the # License. # # Major Contributor(s): # Copyright (C) 2011 Tata Consultancy Services, Ltd. Marc-Andre Laverdiere (initial developer) # # All Rights Reserved. # # For minor contributions see the git repository. # # Alternatively, the contents of this file may be used under the terms of # either the GNU General Public License Version 3 or later (the "GPLv3+"), or # the GNU Lesser General Public License Version 3 or later (the "LGPLv3+"), # in which case the provisions of the GPLv3+ or the LGPLv3+ are applicable # instead of those above. #check that zzuf is installed hash zzuf &> /dev/null if [ $? -eq 1 ];then echo >&2 "zzuf not found. Please install and/or fix the PATH environement variable. Aborting" exit -1 fi #check that file(s) to fuzz are mentioned if [[ $# -eq 0 ]]; then echo "Usage: fuzzfiles.sh " echo "The generated fuzzed files will be output to the current working directory" echo "The fuzzed files will be named XYZ-ratio-NNNN where:" echo -e "\tXYZ: the original file name" echo -e "\tratio: the fuzz ratio (what % of bytes were fuzzed)" echo -e "\tNNNN: the mutation # for that file and ratio combo" exit -1 fi for file in $@; do if [ -d $file ]; then echo "$file is a directory. Only files are allowed" elif [ -e $file ]; then basename=${file##*/} #Sequence from 0.001 to 0.5 for ratio in `seq -w 1 2 500 | sed -e 's/^/0./'`; do echo "Fuzzing $file with ratio $ratio" for i in {1..1000}; do zzuf -r $ratio < $file > "$basename-$ratio-$i" done #end of for i in {1.. done #end of for ratio in ... fi #end if of file vailidity check done #end for file in $@ value='distro/collabora/cd-5.3-3.4'>distro/collabora/cd-5.3-3.4 LibreOffice 核心代码仓库文档基金会
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2022-06-15clang-tidy modernize-pass-by-value in drawinglayerNoel Grandin
Change-Id: I8a3245c6a4d687edbc95cf28b2932d80c86a7b65 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135828 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2020-07-16compact namespace: drawinglayerNoel Grandin
Change-Id: I32648ae81c4a06f944b70c0cca1694333ec02859 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/98916 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2020-03-09Fix typoAndrea Gelmini
Change-Id: I9eea6fe0f221f1287f5b82f3a4ed07321e1c2d4f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/90229 Tested-by: Jenkins Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2019-10-29loplugin:finalclasses in drawinglayerNoel Grandin
Change-Id: I24e5187f603f66ef87f10a1b197907c5b869cfd1 Reviewed-on: https://gerrit.libreoffice.org/81644 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2016-09-13loplugin:override: No more need for the "MSVC dtor override" workaroundStephan Bergmann
The issue of 362d4f0cd4e50111edfae9d30c90602c37ed65a2 "Explicitly mark overriding destructors as 'virtual'" appears to no longer be a problem with MSVC 2013. (The little change in the rewriting code of compilerplugins/clang/override.cxx was necessary to prevent an endless loop when adding "override" to OOO_DLLPUBLIC_CHARTTOOLS virtual ~CloseableLifeTimeManager(); in chart2/source/inc/LifeTime.hxx, getting stuck in the leading OOO_DLLPUBLIC_CHARTTOOLS macro. Can't remember what that isAtEndOfImmediateMacroExpansion thing was originally necessary for, anyway.) Change-Id: I534c634504d7216b9bb632c2775c04eaf27e927e