Skip to content

Commit fuzzer source code. - #2

Open
viniul wants to merge 19 commits into
apache:masterfrom
viniul:master
Open

viniul wants to merge 19 commits into
apache:masterfrom
viniul:master

Conversation

@viniul

@viniul viniul commented Jan 22, 2020

Copy link
Copy Markdown

As discussed on the mailing list already, this PR adds the fuzzing harnesses written by @bshastry and me to the xerces upstream. An initial integration into already uncovered some bugs. Integrating the fuzzing harnesses into upstream provides a cleaner way to test the xerces code.

The purpose of this PR and the integration of xerces into oss-fuzz is to allow parts of xerces' code to be continuously fuzzed, which would probably result in the detection of security bugs early on in the development process.

CC @bshastry

@viniul

viniul commented Apr 4, 2020

Copy link
Copy Markdown
Author

Just following up - is there still interest in merging this PR? If so, is there anything on our side to help get this PR merged?

@scantor

scantor commented Apr 6, 2020

Copy link
Copy Markdown
Contributor

It appears this is code that isn't part of the actual build (no makefile changes), so what's the significance of this being in the distribution? Seems like maintaining it as a patch would be more agile since there are no committers with any familiarity or involvement in it.

That said, I don't have any personal objection, and it appears to be Apache-licensed, so I can check it in if there's value. I can't accept the PR (no access and I don't use GitHub for commits) but I can apply a patch via GitBox.

@viniul

viniul commented Apr 6, 2020

Copy link
Copy Markdown
Author

You are right, the current PR does not make any changes to the Makefile - that was a mistake on our part, thank you for pointing that out. We will add another commit to this PR that will introduce the necessary changes to the Makefile/configure file. I would suggest that the changes introduce a new flag --build-fuzzers to to the configure file, so that the fuzzing binaries will only be build once the flag is enabled. This would have the advantage that developers could immediately fuzz their code prior to commiting if they are interested.

@scantor

scantor commented Apr 6, 2020

Copy link
Copy Markdown
Contributor

That clarifies things, thank you. I'm not opposed, but you can save me some time by attaching the patch to a JIRA ticket (there may be one already for your original request? I don't recall) rather than using GitHub, which I cannot make use of.

@viniul

viniul commented Apr 6, 2020

Copy link
Copy Markdown
Author

Absolutely! Anything else we can do on our side to make this integration as easy as possible?

@scantor

scantor commented Apr 6, 2020

Copy link
Copy Markdown
Contributor

Just minimizing the impact on the configure script, so I can avoid having to do too much integration testing/review, but otherwise since all the code you're adding is separate I really don't have other concerns.

@viniul

viniul commented Apr 6, 2020

Copy link
Copy Markdown
Author

Got it, will keep that in mind. Thank you very much - I will work on the changes to the configure script and post a link to the jira ticket here as soon as I am done.

@scantor

scantor commented Apr 7, 2020

Copy link
Copy Markdown
Contributor

This will probably have to miss the next patch because I need to get this release done but we can commit for the next.

@viniul

viniul commented May 8, 2020 •

Copy link
Copy Markdown
Author

Hey @scantor one last question: Would you also be fine with changes to the cmake file? I would prefer this as opposed to adapting the configure script, if it would be fine for you. From what I can see, adapting the cmake file can be done with very little impact, whereas I am not so sure I can say the same for the configure script

@scantor

scantor commented May 8, 2020

Copy link
Copy Markdown
Contributor

It depends what your goal is. The CMake script is not the supported means of building anywhere but Windows, but if the changes you're adding aren't formally part of the build process for a normal release on the other platforms then I don't care that much if they're included.

@viniul

viniul commented May 22, 2020

Copy link
Copy Markdown
Author

I opened a jira ticket here:
https://issues.apache.org/jira/browse/XERCESC-2199

@viniul

viniul commented Jun 20, 2020

Copy link
Copy Markdown
Author