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 more documentation to odoc-generated docs. #36

Merged
merged 2 commits into from
Aug 2, 2019
Merged

Conversation

Enkelmann
Copy link
Contributor

The Readme.md file is not yet adjusted. But I would like to merge this PR first, then publish on Github Pages and then adjust the Readme.md file.

@Enkelmann Enkelmann requested a review from tbarabosch August 1, 2019 11:35
Copy link
Contributor

@tbarabosch tbarabosch left a comment

Choose a reason for hiding this comment

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

Looks fine. Please enhace the documentation a bit. Furthermore, there are some ideas for future stories. Please evaluate these ideas and create a story for the good ones.

If you finish until this afternoon, I am going to merge it. If not, merge it yourself :)

index.mld Outdated Show resolved Hide resolved
index.mld Show resolved Hide resolved
{2 How to use the docker image}

The docker image can be installed with
{[docker pull fkiecad/cwe_checker]}
Copy link
Contributor

Choose a reason for hiding this comment

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

this will pull the latest docker image BASED on the source code of HEAD!!
Note to us: we should tag images according to their versions on dockerhub, so that we can say docker pull fkiecad/cwe_checker:0.2

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added to documentation. And story for us for stable docker images added.

index.mld Show resolved Hide resolved

{1:CmdLineOptions Command line options}

All command line options have to be prefixed with [--cwe-checker] (so that BAP knows to forward them to the {i cwe_checker} plugin).
Copy link
Contributor

Choose a reason for hiding this comment

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

Note to us (maybe story): should we write a wrapper around bap (just a shellscript) and put it on the path. This wrapper would be called like cwe_checker --out BLA --json BINARY and it would translate it to bap BINARY --pass=cwe_checker --cwe-checker-out BLA --cwe-checker-json. This would made it more transparnet for the users!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, that would be useful, especially if combined with the docker container. I'll write a story for it.

index.mld Show resolved Hide resolved
- [Tid_map: Bap.Std.word Bap.Std.Tid.Map.t] A map from the Tids of basic blocks to concrete addresses in the binary file
- [symbols_pairs: string list list] Symbols read from the {i config.json} file
- [parameters: string list] Parameters read from the config.json file

Copy link
Contributor

Choose a reason for hiding this comment

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

story: add an empty check that just outputs "Hello, World!"

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I have added an example .ml to the documentation, but I am not eager to add an actual hello-world-check to the code base. I hope the documentation is already clear enough so that users can copy-paste this example to the code base.

@tbarabosch
Copy link
Contributor

Ok, looks fine now. Travis errors, however these are networking issues and this PR should not be relevant to the testing suite anyways. Merging...

@tbarabosch tbarabosch merged commit 1276d34 into master Aug 2, 2019
@tbarabosch tbarabosch deleted the documentation branch August 2, 2019 12:38
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