Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[tinyxml2] Update tinyxml2 fuzzer #11985

Merged
merged 7 commits into from
Aug 5, 2024
Merged

Conversation

gnbon
Copy link
Contributor

@gnbon gnbon commented May 21, 2024

Update tinyxml2 fuzzer by myself. Looking forward to approval.

Copy link

gnbon is a new contributor to projects/tinyxml2. The PR must be approved by known contributors before it can be merged. The past contributors are: DonggeLiu, inferno-chromium, Dor1s, Androbin (unverified), jumde (unverified)

@gnbon gnbon changed the title [tinyxml2] Update auto_css [tinyxml2] Update tinyxml2 fuzzer May 21, 2024
Copy link
Collaborator

@DavidKorczynski DavidKorczynski left a comment

Choose a reason for hiding this comment

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

We shouldn't change the name of the existing fuzzer as this will cause issues in the oss-fuzz backend.

I can see the existing harness has #if defined( _MSC_VER ) || defined (WIN32) --> will this, however, be true in any OSS-Fuzz build environment?

will await maintainer approval for this.

- Keep the original fuzzer name to avoid OSS-Fuzz backend issues
- Remove platform-specific conditional compilation directives
- Remove unnecessary headers
@gnbon
Copy link
Contributor Author

gnbon commented May 22, 2024

@DavidKorczynski I made the changes based on your feedback. How do these changes look?

// Entry point for LibFuzzer.
extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
char pathname[256];
sprintf(pathname, "/dev/shm/fuzz-%d", getpid());
Copy link
Collaborator

Choose a reason for hiding this comment

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

does this path always exist? /dev/shm?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Nope. Would it be better to modify it like this?

sprintf(filename, "/tmp/libfuzzer.%d", getpid());
FILE *fp = fopen(filename, "wb");

@DavidKorczynski
Copy link
Collaborator

@DavidKorczynski I made the changes based on your feedback. How do these changes look?

it looks fine as such but will await maintainer feedback.

@gnbon
Copy link
Contributor Author

gnbon commented Jun 10, 2024

@DavidKorczynski The maintainer is not responding. Is a maintainer approval essential? Or, is there any other way for me to obtain permission?

@leethomason
Copy link

Approved - and thanks for looking into this

@gnbon
Copy link
Contributor Author

gnbon commented Aug 5, 2024

@DavidKorczynski Could you accept this PR?

@DavidKorczynski DavidKorczynski merged commit 09500df into google:master Aug 5, 2024
15 checks passed
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.

3 participants