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

ctlib example #11

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

ctlib example #11

wants to merge 1 commit into from

Conversation

yhql
Copy link

@yhql yhql commented May 13, 2024

This PR attempts to minimize the operations needed to handle a checkct-generated project.

checkct was not modified to generate the new examples in this PR, which are only here to show how this would work.
A new checkct project (like the new top-level chachapoly and dalek examples) generates a project that "hides" all binsec invocation parameters in the runner part of the project configuration, turning it into a normal cargo runnable project.
It only needs a single main.rs file because the randomness generation part was made available through a new ctlib that is a dependency of the generated project.
checkct is also a build-dependency of the generated project, and can generate the binsec driver from there. The template for this driver was slightly modified to reduce dependencies to machine-specific setup (no more setting up the return address manually for example)

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.

1 participant