From 5cff2eac6f6f6b9e143bbc3708345e7a4e681e1b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E6=99=BA=E5=8B=87?= Date: Wed, 13 Aug 2025 21:37:25 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=A1=A5=E5=85=85fuzz?= =?UTF-8?q?=E7=94=A8=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 张智勇 --- .../fuzztest/imageaccessor_fuzzer/corpus/init | 2 +- .../BUILD.gn | 6 ++-- .../corpus/init | 16 +++++++++++ .../imagefwkconvertrgb2yuv_fuzzer/corpus/init | 28 ++++++++++--------- .../corpus/init | 16 +++++++++++ .../imagefwkconvertyuv2rgb_fuzzer/corpus/init | 16 +++++++++++ .../imagefwkdecodebmp_fuzzer/corpus/init | 16 +++++++++++ .../imagefwkdecodeext_fuzzer/corpus/init | 16 +++++++++++ .../imagefwkdecodegif_fuzzer/corpus/init | 16 +++++++++++ .../imagefwkdecodehdr2_fuzzer/corpus/init | 16 +++++++++++ .../imagefwkdecodehdr_fuzzer/corpus/init | 16 +++++++++++ .../imagefwkdecodeheif_fuzzer/corpus/init | 16 +++++++++++ .../imagefwkdecodejpeg2_fuzzer/corpus/init | 16 +++++++++++ .../imagefwkdecodejpeg_fuzzer/corpus/init | 16 +++++++++++ .../imagefwkdecodepng2_fuzzer/corpus/init | 16 +++++++++++ .../imagefwkdecodepng_fuzzer/corpus/init | 16 +++++++++++ .../imagefwkdecodesvg2_fuzzer/corpus/init | 16 +++++++++++ .../imagefwkdecodesvg_fuzzer/corpus/init | 16 +++++++++++ .../imagefwkencodeext2_fuzzer/corpus/init | 16 +++++++++++ .../imagefwkencodegif2_fuzzer/corpus/init | 16 +++++++++++ .../imagefwkencodejpeg2_fuzzer/corpus/init | 16 +++++++++++ .../imagefwkexifdng2_fuzzer/corpus/init | 16 +++++++++++ .../imagefwkexifdng_fuzzer/corpus/init | 16 +++++++++++ .../imagefwkexifheif2_fuzzer/corpus/init | 16 +++++++++++ .../imagefwkexifheif_fuzzer/corpus/init | 16 +++++++++++ .../imagefwkexifjpeg2_fuzzer/corpus/init | 16 +++++++++++ .../imagefwkexifjpeg_fuzzer/corpus/init | 16 +++++++++++ .../imagefwkexifpng2_fuzzer/corpus/init | 16 +++++++++++ .../include/image_fwk_exif_png_fuzzer.h | 4 +-- .../imagefwkexifpng_fuzzer/corpus/init | 16 +++++++++++ .../include/image_fwk_exif_png_fuzzer.h | 4 +-- .../imagefwkexifwebp2_fuzzer/corpus/init | 16 +++++++++++ .../imagefwkexifwebp_fuzzer/corpus/init | 16 +++++++++++ .../fuzztest/imagepixelYuv_fuzzer/corpus/init | 2 +- .../fuzztest/imagepngplugin2_fuzzer/BUILD.gn | 4 +-- 35 files changed, 473 insertions(+), 25 deletions(-) create mode 100644 frameworks/innerkitsimpl/test/fuzztest/imagefwkconvertpixelmapformat_fuzzer/corpus/init create mode 100644 frameworks/innerkitsimpl/test/fuzztest/imagefwkconvertrgb2yuvp010_fuzzer/corpus/init create mode 100644 frameworks/innerkitsimpl/test/fuzztest/imagefwkconvertyuv2rgb_fuzzer/corpus/init create mode 100644 frameworks/innerkitsimpl/test/fuzztest/imagefwkdecodebmp_fuzzer/corpus/init create mode 100644 frameworks/innerkitsimpl/test/fuzztest/imagefwkdecodeext_fuzzer/corpus/init create mode 100644 frameworks/innerkitsimpl/test/fuzztest/imagefwkdecodegif_fuzzer/corpus/init create mode 100644 frameworks/innerkitsimpl/test/fuzztest/imagefwkdecodehdr2_fuzzer/corpus/init create mode 100644 frameworks/innerkitsimpl/test/fuzztest/imagefwkdecodehdr_fuzzer/corpus/init create mode 100644 frameworks/innerkitsimpl/test/fuzztest/imagefwkdecodeheif_fuzzer/corpus/init create mode 100644 frameworks/innerkitsimpl/test/fuzztest/imagefwkdecodejpeg2_fuzzer/corpus/init create mode 100644 frameworks/innerkitsimpl/test/fuzztest/imagefwkdecodejpeg_fuzzer/corpus/init create mode 100644 frameworks/innerkitsimpl/test/fuzztest/imagefwkdecodepng2_fuzzer/corpus/init create mode 100644 frameworks/innerkitsimpl/test/fuzztest/imagefwkdecodepng_fuzzer/corpus/init create mode 100644 frameworks/innerkitsimpl/test/fuzztest/imagefwkdecodesvg2_fuzzer/corpus/init create mode 100644 frameworks/innerkitsimpl/test/fuzztest/imagefwkdecodesvg_fuzzer/corpus/init create mode 100644 frameworks/innerkitsimpl/test/fuzztest/imagefwkencodeext2_fuzzer/corpus/init create mode 100644 frameworks/innerkitsimpl/test/fuzztest/imagefwkencodegif2_fuzzer/corpus/init create mode 100644 frameworks/innerkitsimpl/test/fuzztest/imagefwkencodejpeg2_fuzzer/corpus/init create mode 100644 frameworks/innerkitsimpl/test/fuzztest/imagefwkexifdng2_fuzzer/corpus/init create mode 100644 frameworks/innerkitsimpl/test/fuzztest/imagefwkexifdng_fuzzer/corpus/init create mode 100644 frameworks/innerkitsimpl/test/fuzztest/imagefwkexifheif2_fuzzer/corpus/init create mode 100644 frameworks/innerkitsimpl/test/fuzztest/imagefwkexifheif_fuzzer/corpus/init create mode 100644 frameworks/innerkitsimpl/test/fuzztest/imagefwkexifjpeg2_fuzzer/corpus/init create mode 100644 frameworks/innerkitsimpl/test/fuzztest/imagefwkexifjpeg_fuzzer/corpus/init create mode 100644 frameworks/innerkitsimpl/test/fuzztest/imagefwkexifpng2_fuzzer/corpus/init create mode 100644 frameworks/innerkitsimpl/test/fuzztest/imagefwkexifpng_fuzzer/corpus/init create mode 100644 frameworks/innerkitsimpl/test/fuzztest/imagefwkexifwebp2_fuzzer/corpus/init create mode 100644 frameworks/innerkitsimpl/test/fuzztest/imagefwkexifwebp_fuzzer/corpus/init diff --git a/frameworks/innerkitsimpl/test/fuzztest/imageaccessor_fuzzer/corpus/init b/frameworks/innerkitsimpl/test/fuzztest/imageaccessor_fuzzer/corpus/init index 6198079a2..7ade8a0fa 100644 --- a/frameworks/innerkitsimpl/test/fuzztest/imageaccessor_fuzzer/corpus/init +++ b/frameworks/innerkitsimpl/test/fuzztest/imageaccessor_fuzzer/corpus/init @@ -1,5 +1,5 @@ /* - * Copyright (c) 2024 Huawei Device Co., Ltd. + * Copyright (c) 2025 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/frameworks/innerkitsimpl/test/fuzztest/imagefwkconvertp010yuv2rgb2_fuzzer/BUILD.gn b/frameworks/innerkitsimpl/test/fuzztest/imagefwkconvertp010yuv2rgb2_fuzzer/BUILD.gn index b226b4d8f..2faecd9ad 100644 --- a/frameworks/innerkitsimpl/test/fuzztest/imagefwkconvertp010yuv2rgb2_fuzzer/BUILD.gn +++ b/frameworks/innerkitsimpl/test/fuzztest/imagefwkconvertp010yuv2rgb2_fuzzer/BUILD.gn @@ -28,9 +28,9 @@ ohos_fuzztest("Imagefwkconvertp010yuv2rgb2FuzzTest") { defines = [ "EXT_PIXEL" ] - deps = [ + deps = [ "$image_subsystem/interfaces/innerkits:image_native", - "$image_subsystem/frameworks/innerkitsimpl/utils:image_utils", + "$image_subsystem/frameworks/innerkitsimpl/utils:image_utils" ] external_deps = [ @@ -38,4 +38,4 @@ ohos_fuzztest("Imagefwkconvertp010yuv2rgb2FuzzTest") { "hilog:libhilog", "ipc:ipc_core", ] -} \ No newline at end of file +} diff --git a/frameworks/innerkitsimpl/test/fuzztest/imagefwkconvertpixelmapformat_fuzzer/corpus/init b/frameworks/innerkitsimpl/test/fuzztest/imagefwkconvertpixelmapformat_fuzzer/corpus/init new file mode 100644 index 000000000..14cddafc0 --- /dev/null +++ b/frameworks/innerkitsimpl/test/fuzztest/imagefwkconvertpixelmapformat_fuzzer/corpus/init @@ -0,0 +1,16 @@ +/* + * Copyright (c) 2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +FUZZ diff --git a/frameworks/innerkitsimpl/test/fuzztest/imagefwkconvertrgb2yuv_fuzzer/corpus/init b/frameworks/innerkitsimpl/test/fuzztest/imagefwkconvertrgb2yuv_fuzzer/corpus/init index e7c3fecd8..14cddafc0 100644 --- a/frameworks/innerkitsimpl/test/fuzztest/imagefwkconvertrgb2yuv_fuzzer/corpus/init +++ b/frameworks/innerkitsimpl/test/fuzztest/imagefwkconvertrgb2yuv_fuzzer/corpus/init @@ -1,14 +1,16 @@ -# Copyright (c) 2024 Huawei Device Co., Ltd. -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. +/* + * Copyright (c) 2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ -FUZZ \ No newline at end of file +FUZZ diff --git a/frameworks/innerkitsimpl/test/fuzztest/imagefwkconvertrgb2yuvp010_fuzzer/corpus/init b/frameworks/innerkitsimpl/test/fuzztest/imagefwkconvertrgb2yuvp010_fuzzer/corpus/init new file mode 100644 index 000000000..14cddafc0 --- /dev/null +++ b/frameworks/innerkitsimpl/test/fuzztest/imagefwkconvertrgb2yuvp010_fuzzer/corpus/init @@ -0,0 +1,16 @@ +/* + * Copyright (c) 2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +FUZZ diff --git a/frameworks/innerkitsimpl/test/fuzztest/imagefwkconvertyuv2rgb_fuzzer/corpus/init b/frameworks/innerkitsimpl/test/fuzztest/imagefwkconvertyuv2rgb_fuzzer/corpus/init new file mode 100644 index 000000000..14cddafc0 --- /dev/null +++ b/frameworks/innerkitsimpl/test/fuzztest/imagefwkconvertyuv2rgb_fuzzer/corpus/init @@ -0,0 +1,16 @@ +/* + * Copyright (c) 2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +FUZZ diff --git a/frameworks/innerkitsimpl/test/fuzztest/imagefwkdecodebmp_fuzzer/corpus/init b/frameworks/innerkitsimpl/test/fuzztest/imagefwkdecodebmp_fuzzer/corpus/init new file mode 100644 index 000000000..14cddafc0 --- /dev/null +++ b/frameworks/innerkitsimpl/test/fuzztest/imagefwkdecodebmp_fuzzer/corpus/init @@ -0,0 +1,16 @@ +/* + * Copyright (c) 2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +FUZZ diff --git a/frameworks/innerkitsimpl/test/fuzztest/imagefwkdecodeext_fuzzer/corpus/init b/frameworks/innerkitsimpl/test/fuzztest/imagefwkdecodeext_fuzzer/corpus/init new file mode 100644 index 000000000..14cddafc0 --- /dev/null +++ b/frameworks/innerkitsimpl/test/fuzztest/imagefwkdecodeext_fuzzer/corpus/init @@ -0,0 +1,16 @@ +/* + * Copyright (c) 2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +FUZZ diff --git a/frameworks/innerkitsimpl/test/fuzztest/imagefwkdecodegif_fuzzer/corpus/init b/frameworks/innerkitsimpl/test/fuzztest/imagefwkdecodegif_fuzzer/corpus/init new file mode 100644 index 000000000..14cddafc0 --- /dev/null +++ b/frameworks/innerkitsimpl/test/fuzztest/imagefwkdecodegif_fuzzer/corpus/init @@ -0,0 +1,16 @@ +/* + * Copyright (c) 2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +FUZZ diff --git a/frameworks/innerkitsimpl/test/fuzztest/imagefwkdecodehdr2_fuzzer/corpus/init b/frameworks/innerkitsimpl/test/fuzztest/imagefwkdecodehdr2_fuzzer/corpus/init new file mode 100644 index 000000000..14cddafc0 --- /dev/null +++ b/frameworks/innerkitsimpl/test/fuzztest/imagefwkdecodehdr2_fuzzer/corpus/init @@ -0,0 +1,16 @@ +/* + * Copyright (c) 2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +FUZZ diff --git a/frameworks/innerkitsimpl/test/fuzztest/imagefwkdecodehdr_fuzzer/corpus/init b/frameworks/innerkitsimpl/test/fuzztest/imagefwkdecodehdr_fuzzer/corpus/init new file mode 100644 index 000000000..14cddafc0 --- /dev/null +++ b/frameworks/innerkitsimpl/test/fuzztest/imagefwkdecodehdr_fuzzer/corpus/init @@ -0,0 +1,16 @@ +/* + * Copyright (c) 2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +FUZZ diff --git a/frameworks/innerkitsimpl/test/fuzztest/imagefwkdecodeheif_fuzzer/corpus/init b/frameworks/innerkitsimpl/test/fuzztest/imagefwkdecodeheif_fuzzer/corpus/init new file mode 100644 index 000000000..14cddafc0 --- /dev/null +++ b/frameworks/innerkitsimpl/test/fuzztest/imagefwkdecodeheif_fuzzer/corpus/init @@ -0,0 +1,16 @@ +/* + * Copyright (c) 2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +FUZZ diff --git a/frameworks/innerkitsimpl/test/fuzztest/imagefwkdecodejpeg2_fuzzer/corpus/init b/frameworks/innerkitsimpl/test/fuzztest/imagefwkdecodejpeg2_fuzzer/corpus/init new file mode 100644 index 000000000..14cddafc0 --- /dev/null +++ b/frameworks/innerkitsimpl/test/fuzztest/imagefwkdecodejpeg2_fuzzer/corpus/init @@ -0,0 +1,16 @@ +/* + * Copyright (c) 2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +FUZZ diff --git a/frameworks/innerkitsimpl/test/fuzztest/imagefwkdecodejpeg_fuzzer/corpus/init b/frameworks/innerkitsimpl/test/fuzztest/imagefwkdecodejpeg_fuzzer/corpus/init new file mode 100644 index 000000000..14cddafc0 --- /dev/null +++ b/frameworks/innerkitsimpl/test/fuzztest/imagefwkdecodejpeg_fuzzer/corpus/init @@ -0,0 +1,16 @@ +/* + * Copyright (c) 2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +FUZZ diff --git a/frameworks/innerkitsimpl/test/fuzztest/imagefwkdecodepng2_fuzzer/corpus/init b/frameworks/innerkitsimpl/test/fuzztest/imagefwkdecodepng2_fuzzer/corpus/init new file mode 100644 index 000000000..14cddafc0 --- /dev/null +++ b/frameworks/innerkitsimpl/test/fuzztest/imagefwkdecodepng2_fuzzer/corpus/init @@ -0,0 +1,16 @@ +/* + * Copyright (c) 2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +FUZZ diff --git a/frameworks/innerkitsimpl/test/fuzztest/imagefwkdecodepng_fuzzer/corpus/init b/frameworks/innerkitsimpl/test/fuzztest/imagefwkdecodepng_fuzzer/corpus/init new file mode 100644 index 000000000..14cddafc0 --- /dev/null +++ b/frameworks/innerkitsimpl/test/fuzztest/imagefwkdecodepng_fuzzer/corpus/init @@ -0,0 +1,16 @@ +/* + * Copyright (c) 2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +FUZZ diff --git a/frameworks/innerkitsimpl/test/fuzztest/imagefwkdecodesvg2_fuzzer/corpus/init b/frameworks/innerkitsimpl/test/fuzztest/imagefwkdecodesvg2_fuzzer/corpus/init new file mode 100644 index 000000000..14cddafc0 --- /dev/null +++ b/frameworks/innerkitsimpl/test/fuzztest/imagefwkdecodesvg2_fuzzer/corpus/init @@ -0,0 +1,16 @@ +/* + * Copyright (c) 2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +FUZZ diff --git a/frameworks/innerkitsimpl/test/fuzztest/imagefwkdecodesvg_fuzzer/corpus/init b/frameworks/innerkitsimpl/test/fuzztest/imagefwkdecodesvg_fuzzer/corpus/init new file mode 100644 index 000000000..14cddafc0 --- /dev/null +++ b/frameworks/innerkitsimpl/test/fuzztest/imagefwkdecodesvg_fuzzer/corpus/init @@ -0,0 +1,16 @@ +/* + * Copyright (c) 2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +FUZZ diff --git a/frameworks/innerkitsimpl/test/fuzztest/imagefwkencodeext2_fuzzer/corpus/init b/frameworks/innerkitsimpl/test/fuzztest/imagefwkencodeext2_fuzzer/corpus/init new file mode 100644 index 000000000..14cddafc0 --- /dev/null +++ b/frameworks/innerkitsimpl/test/fuzztest/imagefwkencodeext2_fuzzer/corpus/init @@ -0,0 +1,16 @@ +/* + * Copyright (c) 2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +FUZZ diff --git a/frameworks/innerkitsimpl/test/fuzztest/imagefwkencodegif2_fuzzer/corpus/init b/frameworks/innerkitsimpl/test/fuzztest/imagefwkencodegif2_fuzzer/corpus/init new file mode 100644 index 000000000..14cddafc0 --- /dev/null +++ b/frameworks/innerkitsimpl/test/fuzztest/imagefwkencodegif2_fuzzer/corpus/init @@ -0,0 +1,16 @@ +/* + * Copyright (c) 2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +FUZZ diff --git a/frameworks/innerkitsimpl/test/fuzztest/imagefwkencodejpeg2_fuzzer/corpus/init b/frameworks/innerkitsimpl/test/fuzztest/imagefwkencodejpeg2_fuzzer/corpus/init new file mode 100644 index 000000000..14cddafc0 --- /dev/null +++ b/frameworks/innerkitsimpl/test/fuzztest/imagefwkencodejpeg2_fuzzer/corpus/init @@ -0,0 +1,16 @@ +/* + * Copyright (c) 2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +FUZZ diff --git a/frameworks/innerkitsimpl/test/fuzztest/imagefwkexifdng2_fuzzer/corpus/init b/frameworks/innerkitsimpl/test/fuzztest/imagefwkexifdng2_fuzzer/corpus/init new file mode 100644 index 000000000..14cddafc0 --- /dev/null +++ b/frameworks/innerkitsimpl/test/fuzztest/imagefwkexifdng2_fuzzer/corpus/init @@ -0,0 +1,16 @@ +/* + * Copyright (c) 2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +FUZZ diff --git a/frameworks/innerkitsimpl/test/fuzztest/imagefwkexifdng_fuzzer/corpus/init b/frameworks/innerkitsimpl/test/fuzztest/imagefwkexifdng_fuzzer/corpus/init new file mode 100644 index 000000000..14cddafc0 --- /dev/null +++ b/frameworks/innerkitsimpl/test/fuzztest/imagefwkexifdng_fuzzer/corpus/init @@ -0,0 +1,16 @@ +/* + * Copyright (c) 2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +FUZZ diff --git a/frameworks/innerkitsimpl/test/fuzztest/imagefwkexifheif2_fuzzer/corpus/init b/frameworks/innerkitsimpl/test/fuzztest/imagefwkexifheif2_fuzzer/corpus/init new file mode 100644 index 000000000..14cddafc0 --- /dev/null +++ b/frameworks/innerkitsimpl/test/fuzztest/imagefwkexifheif2_fuzzer/corpus/init @@ -0,0 +1,16 @@ +/* + * Copyright (c) 2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +FUZZ diff --git a/frameworks/innerkitsimpl/test/fuzztest/imagefwkexifheif_fuzzer/corpus/init b/frameworks/innerkitsimpl/test/fuzztest/imagefwkexifheif_fuzzer/corpus/init new file mode 100644 index 000000000..14cddafc0 --- /dev/null +++ b/frameworks/innerkitsimpl/test/fuzztest/imagefwkexifheif_fuzzer/corpus/init @@ -0,0 +1,16 @@ +/* + * Copyright (c) 2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +FUZZ diff --git a/frameworks/innerkitsimpl/test/fuzztest/imagefwkexifjpeg2_fuzzer/corpus/init b/frameworks/innerkitsimpl/test/fuzztest/imagefwkexifjpeg2_fuzzer/corpus/init new file mode 100644 index 000000000..14cddafc0 --- /dev/null +++ b/frameworks/innerkitsimpl/test/fuzztest/imagefwkexifjpeg2_fuzzer/corpus/init @@ -0,0 +1,16 @@ +/* + * Copyright (c) 2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +FUZZ diff --git a/frameworks/innerkitsimpl/test/fuzztest/imagefwkexifjpeg_fuzzer/corpus/init b/frameworks/innerkitsimpl/test/fuzztest/imagefwkexifjpeg_fuzzer/corpus/init new file mode 100644 index 000000000..14cddafc0 --- /dev/null +++ b/frameworks/innerkitsimpl/test/fuzztest/imagefwkexifjpeg_fuzzer/corpus/init @@ -0,0 +1,16 @@ +/* + * Copyright (c) 2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +FUZZ diff --git a/frameworks/innerkitsimpl/test/fuzztest/imagefwkexifpng2_fuzzer/corpus/init b/frameworks/innerkitsimpl/test/fuzztest/imagefwkexifpng2_fuzzer/corpus/init new file mode 100644 index 000000000..14cddafc0 --- /dev/null +++ b/frameworks/innerkitsimpl/test/fuzztest/imagefwkexifpng2_fuzzer/corpus/init @@ -0,0 +1,16 @@ +/* + * Copyright (c) 2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +FUZZ diff --git a/frameworks/innerkitsimpl/test/fuzztest/imagefwkexifpng2_fuzzer/include/image_fwk_exif_png_fuzzer.h b/frameworks/innerkitsimpl/test/fuzztest/imagefwkexifpng2_fuzzer/include/image_fwk_exif_png_fuzzer.h index 144e546e6..b60f28676 100644 --- a/frameworks/innerkitsimpl/test/fuzztest/imagefwkexifpng2_fuzzer/include/image_fwk_exif_png_fuzzer.h +++ b/frameworks/innerkitsimpl/test/fuzztest/imagefwkexifpng2_fuzzer/include/image_fwk_exif_png_fuzzer.h @@ -12,8 +12,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef FRAMEWORKS_INNERKITSIMPL_TEST_FUZZTEST_IMAGE_FWK_EXIF_JNG_FUZZER_H -#define FRAMEWORKS_INNERKITSIMPL_TEST_FUZZTEST_IMAGE_FWK_EXIF_JNG_FUZZER_H +#ifndef FRAMEWORKS_INNERKITSIMPL_TEST_FUZZTEST_IMAGE_FWK_EXIF_PNG_FUZZER_H +#define FRAMEWORKS_INNERKITSIMPL_TEST_FUZZTEST_IMAGE_FWK_EXIF_PNG_FUZZER_H #define FUZZ_PROJECT_NAME "image_fwk_exif_png_fuzzer" #endif \ No newline at end of file diff --git a/frameworks/innerkitsimpl/test/fuzztest/imagefwkexifpng_fuzzer/corpus/init b/frameworks/innerkitsimpl/test/fuzztest/imagefwkexifpng_fuzzer/corpus/init new file mode 100644 index 000000000..14cddafc0 --- /dev/null +++ b/frameworks/innerkitsimpl/test/fuzztest/imagefwkexifpng_fuzzer/corpus/init @@ -0,0 +1,16 @@ +/* + * Copyright (c) 2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +FUZZ diff --git a/frameworks/innerkitsimpl/test/fuzztest/imagefwkexifpng_fuzzer/include/image_fwk_exif_png_fuzzer.h b/frameworks/innerkitsimpl/test/fuzztest/imagefwkexifpng_fuzzer/include/image_fwk_exif_png_fuzzer.h index 144e546e6..b60f28676 100644 --- a/frameworks/innerkitsimpl/test/fuzztest/imagefwkexifpng_fuzzer/include/image_fwk_exif_png_fuzzer.h +++ b/frameworks/innerkitsimpl/test/fuzztest/imagefwkexifpng_fuzzer/include/image_fwk_exif_png_fuzzer.h @@ -12,8 +12,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef FRAMEWORKS_INNERKITSIMPL_TEST_FUZZTEST_IMAGE_FWK_EXIF_JNG_FUZZER_H -#define FRAMEWORKS_INNERKITSIMPL_TEST_FUZZTEST_IMAGE_FWK_EXIF_JNG_FUZZER_H +#ifndef FRAMEWORKS_INNERKITSIMPL_TEST_FUZZTEST_IMAGE_FWK_EXIF_PNG_FUZZER_H +#define FRAMEWORKS_INNERKITSIMPL_TEST_FUZZTEST_IMAGE_FWK_EXIF_PNG_FUZZER_H #define FUZZ_PROJECT_NAME "image_fwk_exif_png_fuzzer" #endif \ No newline at end of file diff --git a/frameworks/innerkitsimpl/test/fuzztest/imagefwkexifwebp2_fuzzer/corpus/init b/frameworks/innerkitsimpl/test/fuzztest/imagefwkexifwebp2_fuzzer/corpus/init new file mode 100644 index 000000000..14cddafc0 --- /dev/null +++ b/frameworks/innerkitsimpl/test/fuzztest/imagefwkexifwebp2_fuzzer/corpus/init @@ -0,0 +1,16 @@ +/* + * Copyright (c) 2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +FUZZ diff --git a/frameworks/innerkitsimpl/test/fuzztest/imagefwkexifwebp_fuzzer/corpus/init b/frameworks/innerkitsimpl/test/fuzztest/imagefwkexifwebp_fuzzer/corpus/init new file mode 100644 index 000000000..14cddafc0 --- /dev/null +++ b/frameworks/innerkitsimpl/test/fuzztest/imagefwkexifwebp_fuzzer/corpus/init @@ -0,0 +1,16 @@ +/* + * Copyright (c) 2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +FUZZ diff --git a/frameworks/innerkitsimpl/test/fuzztest/imagepixelYuv_fuzzer/corpus/init b/frameworks/innerkitsimpl/test/fuzztest/imagepixelYuv_fuzzer/corpus/init index e7c3fecd8..65af8ee8d 100644 --- a/frameworks/innerkitsimpl/test/fuzztest/imagepixelYuv_fuzzer/corpus/init +++ b/frameworks/innerkitsimpl/test/fuzztest/imagepixelYuv_fuzzer/corpus/init @@ -1,4 +1,4 @@ -# Copyright (c) 2024 Huawei Device Co., Ltd. +# Copyright (c) 2025 Huawei Device Co., Ltd. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at diff --git a/frameworks/innerkitsimpl/test/fuzztest/imagepngplugin2_fuzzer/BUILD.gn b/frameworks/innerkitsimpl/test/fuzztest/imagepngplugin2_fuzzer/BUILD.gn index d66b2c3a6..c42236ae5 100644 --- a/frameworks/innerkitsimpl/test/fuzztest/imagepngplugin2_fuzzer/BUILD.gn +++ b/frameworks/innerkitsimpl/test/fuzztest/imagepngplugin2_fuzzer/BUILD.gn @@ -41,8 +41,6 @@ ohos_fuzztest("ImagePngPlugin2FuzzTest") { "graphic_2d:color_manager", "hilog:libhilog", "libpng:libpng", + "libexif:libexif", ] - if (enable_libexif) { - external_deps += [ "libexif:libexif" ] - } } -- Gitee