Skip to content

initialize fuzzers for pycups#27

Merged
fish98 merged 5 commits intoOpenPrinting:mainfrom
mdimado:pycups-init
Aug 23, 2025
Merged

initialize fuzzers for pycups#27
fish98 merged 5 commits intoOpenPrinting:mainfrom
mdimado:pycups-init

Conversation

@mdimado
Copy link
Copy Markdown
Contributor

@mdimado mdimado commented Aug 23, 2025

This PR initializes the pycups project by adding two fuzzers:

  • fuzz_UTF8.py: fuzzes string-to/from-UTF8 conversions within the cups.Connection API
  • fuzz_file_handling.py: fuzzes file handling APIs

Also contains the seed files:

  • seeds/fuzz_file_handling/
  1. access_log.bin
  2. cupsd_conf.bin
  3. empty_resource.bin
  4. job_resource.bin
  5. mixed_content.bin
  6. path_traversal.bin
  7. ppd_file.bin
  8. simple_filename.bin
  9. utf8_filename.bin
  • seeds/fuzz_UTF8/
  1. ascii.bin
  2. empty.bin
  3. invalid1.bin
  4. invalid2.bin
  5. long.bin
  6. mimetype.bin
  7. mixed.bin
  8. overlong.bin
  9. printer_uri.bin
  10. utf8_2byte.bin
  11. utf8_3byte.bin
  12. utf8_4byte.bin

@mdimado
Copy link
Copy Markdown
Contributor Author

mdimado commented Aug 23, 2025

NOTE: The fuzzers have been tested locally using OSS-Fuzz. The fuzzers are built and run successfully.

@mdimado
Copy link
Copy Markdown
Contributor Author

mdimado commented Aug 23, 2025

@fish98 please review the PR. thanks:)

Copy link
Copy Markdown
Collaborator

@fish98 fish98 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! LGTM.

@fish98 fish98 merged commit e15f3ce into OpenPrinting:main Aug 23, 2025
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.

2 participants