Harnessing LLMs for Document-Guided Fuzzing of OpenCV Library

Fuente: arXiv
Enregistré dans:
Détails bibliographiques
Auteurs principaux: Duan, Bin, Mahmud, Tarek, Che, Meiru, Yan, Yan, Dong, Naipeng, Kim, Dan Dongseong, Yang, Guowei
Format: Preprint
Publié: 2025
Sujets:
Accès en ligne:
Tags: Ajouter un tag
Pas de tags, Soyez le premier à ajouter un tag!
_version_ 1866916851875840000
author Duan, Bin
Mahmud, Tarek
Che, Meiru
Yan, Yan
Dong, Naipeng
Kim, Dan Dongseong
Yang, Guowei
author_facet Duan, Bin
Mahmud, Tarek
Che, Meiru
Yan, Yan
Dong, Naipeng
Kim, Dan Dongseong
Yang, Guowei
contents The combination of computer vision and artificial intelligence is fundamentally transforming a broad spectrum of industries by enabling machines to interpret and act upon visual data with high levels of accuracy. As the biggest and by far the most popular open-source computer vision library, OpenCV library provides an extensive suite of programming functions supporting real-time computer vision. Bugs in the OpenCV library can affect the downstream computer vision applications, and it is critical to ensure the reliability of the OpenCV library. This paper introduces VISTAFUZZ, a novel technique for harnessing large language models (LLMs) for document-guided fuzzing of the OpenCV library. VISTAFUZZ utilizes LLMs to parse API documentation and obtain standardized API information. Based on this standardized information, VISTAFUZZ extracts constraints on individual input parameters and dependencies between these. Using these constraints and dependencies, VISTAFUZZ then generates new input values to systematically test each target API. We evaluate the effectiveness of VISTAFUZZ in testing 330 APIs in the OpenCV library, and the results show that VISTAFUZZ detected 17 new bugs, where 10 bugs have been confirmed, and 5 of these have been fixed.
format Preprint
id arxiv_https___arxiv_org_abs_2507_14558
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Harnessing LLMs for Document-Guided Fuzzing of OpenCV Library
Duan, Bin
Mahmud, Tarek
Che, Meiru
Yan, Yan
Dong, Naipeng
Kim, Dan Dongseong
Yang, Guowei
Software Engineering
The combination of computer vision and artificial intelligence is fundamentally transforming a broad spectrum of industries by enabling machines to interpret and act upon visual data with high levels of accuracy. As the biggest and by far the most popular open-source computer vision library, OpenCV library provides an extensive suite of programming functions supporting real-time computer vision. Bugs in the OpenCV library can affect the downstream computer vision applications, and it is critical to ensure the reliability of the OpenCV library. This paper introduces VISTAFUZZ, a novel technique for harnessing large language models (LLMs) for document-guided fuzzing of the OpenCV library. VISTAFUZZ utilizes LLMs to parse API documentation and obtain standardized API information. Based on this standardized information, VISTAFUZZ extracts constraints on individual input parameters and dependencies between these. Using these constraints and dependencies, VISTAFUZZ then generates new input values to systematically test each target API. We evaluate the effectiveness of VISTAFUZZ in testing 330 APIs in the OpenCV library, and the results show that VISTAFUZZ detected 17 new bugs, where 10 bugs have been confirmed, and 5 of these have been fixed.
title Harnessing LLMs for Document-Guided Fuzzing of OpenCV Library
topic Software Engineering
url https://arxiv.org/abs/2507.14558