From: Michael R Sweet Date: Sat, 27 Mar 2021 03:17:40 +0000 (-0400) Subject: Add simple fuzzer for IPP parser. X-Git-Tag: v2.4b1~163^2~13 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d31f0d8aa989cd2d25a04576ab2774300a8230c8;p=thirdparty%2Fcups.git Add simple fuzzer for IPP parser. --- diff --git a/cups/Makefile b/cups/Makefile index 43b2335347..73a8bcbca4 100644 --- a/cups/Makefile +++ b/cups/Makefile @@ -2,7 +2,7 @@ # Library Makefile for CUPS. # # Copyright © 2021 by OpenPrinting. -# Copyright © 2007-2019 by Apple Inc. +# Copyright © 2007-2021 by Apple Inc. # Copyright © 1997-2006 by Easy Software Products, all rights reserved. # # Licensed under Apache License v2.0. See the file "LICENSE" for more @@ -87,6 +87,7 @@ IMAGEOBJS = \ raster-stubs.o TESTOBJS = \ + fuzzipp.o \ rasterbench.o \ testadmin.o \ testarray.o \ @@ -173,6 +174,7 @@ LIBTARGETS = \ libcupsimage.a UNITTARGETS = \ + fuzzipp \ rasterbench \ testadmin \ testarray \ @@ -463,6 +465,18 @@ libcupsimage.a: $(IMAGEOBJS) $(RANLIB) $@ +# +# fuzzipp (dependency on static CUPS library is intentional) +# + +fuzzipp: fuzzipp.o $(LIBCUPSSTATIC) + echo Linking $@... + $(LD_CC) $(ARCHFLAGS) $(ALL_LDFLAGS) -o $@ fuzzipp.o $(LINKCUPSSTATIC) + $(CODE_SIGN) -s "$(CODE_SIGN_IDENTITY)" $@ + echo Fuzzing IPP API... + ./fuzzipp + + # # rasterbench (dependency on static CUPS library is intentional) #