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

Fix native library handling #195

Merged

Conversation

fmeum
Copy link
Member

@fmeum fmeum commented Jan 19, 2022

See the individual commit messages.

@fmeum fmeum force-pushed the fix-native-library-path-escaping branch from 37545fd to 41cb220 Compare January 19, 2022 17:28
@fmeum
Copy link
Member Author

fmeum commented Jan 19, 2022

This PR fixes the underlying issue in the java_fuzz_test logic, but fails to provide Bazel 5 support due to a separate issue that only shows up on macOS. I will debug this later.

@stefanbucur The bug is only relevant when fuzzing Java mixed with native libraries. If that's not super urgent to fix, you could hold the 0.3.1 release until I have fixed this Bazel 5 issue. Otherwise, feel free to cherry-pick the first commit.

@fmeum fmeum force-pushed the fix-native-library-path-escaping branch 2 times, most recently from 223c5a3 to 2426e3c Compare January 19, 2022 22:40
fmeum added 2 commits January 20, 2022 10:31
This should have been changed when Jazzer was updated past
CodeIntelligenceTesting/jazzer@24069c3
but was missed due to missing test coverage for the case of multiple
native libraries.

When Bazel 5 was released today, the use of transitions coupled with
bazelbuild/bazel@20061f8
caused the NativeFuzzTest example to suddenly have two native library
dependencies, which triggered the dormant bug.
transitive_native_libraries can contain LibraryToLink instances for
static libraries and object files, which do not have to be added to the
java.library.path. Prevent analysis time failures by skipping them.
@fmeum fmeum force-pushed the fix-native-library-path-escaping branch from 2426e3c to 0669d72 Compare January 20, 2022 09:40
@fmeum fmeum changed the title Correctly escape native library path separator and improve CI checks Fix native library handling Jan 20, 2022
@fmeum fmeum force-pushed the fix-native-library-path-escaping branch 3 times, most recently from d6ad7a2 to 581c350 Compare January 20, 2022 10:32
@fmeum fmeum marked this pull request as ready for review January 20, 2022 10:32
@fmeum
Copy link
Member Author

fmeum commented Jan 20, 2022

@stefanbucur This is ready for review now and fixes the two bugs I am aware of.

@stefanbucur stefanbucur merged commit bf065ea into bazel-contrib:master Jan 20, 2022
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