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

Add Python Grammar Loader for Nautilus #2635

Merged
merged 36 commits into from
Oct 29, 2024

Conversation

R9295
Copy link
Collaborator

@R9295 R9295 commented Oct 28, 2024

Let's also fix the PyO3 CI in this PR
and add a proper example

@R9295 R9295 changed the title Feature/py grammar loader Add Python Grammar Loader for Nautilus Oct 28, 2024
@R9295 R9295 force-pushed the feature/py-grammar-loader branch from 0e8a3c7 to ae2eda8 Compare October 28, 2024 13:09
R9295

This comment was marked as resolved.

@@ -109,6 +109,8 @@ impl ChunkStore {
}

#[cfg(test)]
// Due to fs::create_dir_all, miri won't work
Copy link
Member

Choose a reason for hiding this comment

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

how did it work before?
Could we just skip the create_dir_all in miri and do everything else?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Ah my bad, CI miri already uses -disable-isolation

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I have no idea why it is failing

@R9295
Copy link
Collaborator Author

R9295 commented Oct 29, 2024

@domenukk can we merge? android, ios CI is fixed now. I expect miri to pass too

The frida CI fails cause auto download is now not a default feature and that's why it cannot find the headers

Note: Nautilus is now an optional feature, not default

@domenukk
Copy link
Member

Thanks for the work! <3

@domenukk domenukk merged commit 0f744a3 into AFLplusplus:main Oct 29, 2024
90 of 99 checks passed
riesentoaster pushed a commit to riesentoaster/LibAFL that referenced this pull request Dec 11, 2024
* add python grammar loader for Nautilus

* fmt

* fmt toml

* add python to macos CI deps

* install python

* fmt

* ci

* clippy

* fix workflow

* fmt

* fix baby nautilus

* fix nautilus sync

* fmt

* fmt

* clippy

* typo

* fix miri

* remove pyo3 from workspace to packages which need it and make it optional

* go back to AsRef<Path> for nautilus grammar loading

* replace hardcoded python flags for macos build

* typo

* taplo fmt

* revert formatting of libafl_qemu_arch

* ci

* typo

* remove expects in NautilusContext::from_file and make them Results

* remove not(miri) clause in test

* try and fix python build fir ios and android

* again

* android

* tmate

* fix android build

* document load_python_grammar

* log if python or json when loading nautilus grammar

* make nautilus optional

* add nautilus as feature to forkserver_simple_nautilus
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