Thanks to visit codestin.com
Credit goes to github.com

Skip to content

vips_fuzzer: allow filename-based load/save paths#5003

Open
dloebl wants to merge 4 commits intolibvips:masterfrom
dloebl:vips_fuzzer-allow-tmp-file-load-save
Open

vips_fuzzer: allow filename-based load/save paths#5003
dloebl wants to merge 4 commits intolibvips:masterfrom
dloebl:vips_fuzzer-allow-tmp-file-load-save

Conversation

@dloebl
Copy link
Copy Markdown
Contributor

@dloebl dloebl commented Apr 19, 2026

Route the filename arg of foreign-load/save ops through a /tmp file instead of a random path from the input (load) or /dev/null (save).

Unlocks coverage of code that memory sources are unable to reach: Mostly libvips/iofuncs/source.c (e.g. mmap
fast paths).

Temp files are written lazily and g_unlinked per iteration, so ops without a filename arg aren't slowed down.

ToDo:

  • Improve the seed corpus for filename operations further
  • Check for operations that aren't cleaned up correctly (VipsForeignSaveDz might be a candidate) and block them
  • Local test fuzzing run

@dloebl dloebl marked this pull request as ready for review April 20, 2026 08:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant