Skip to content

checked-c-convert: Emit bounds-safe interfaces #473

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

Closed
nmeum opened this issue Apr 5, 2018 · 3 comments
Closed

checked-c-convert: Emit bounds-safe interfaces #473

nmeum opened this issue Apr 5, 2018 · 3 comments
Labels
feature This labels new features and enhancements.

Comments

@nmeum
Copy link
Contributor

nmeum commented Apr 5, 2018

This is rather a feature request than a bug report but you seem to be interested in those as well, so I hope you don't mind that I open an issue for this. If you would rather like to discuss these sort of things on the ML let me know.

We are using Checked C only with bounds-safe interfaces to retain interoperability with existing Legacy C code. We still want to convert functions to checked program scope though, we only want them to provide a Legacy C compatible API.

This however, doesn't seem to be possible when using checked-c-convert to automatically convert Legacy C code to Checked C. I would therefore propose adding an additional command line flag to checked-c-convert to make it emit Checked C code with bounds-safe interfaces.

@dtarditi
Copy link
Member

dtarditi commented Apr 6, 2018

Thanks - I've assigned this to @awruef, who owns the Checked C conversion tool. I know he is thinking about bounds-safe interfaces.

@dtarditi dtarditi added the feature This labels new features and enhancements. label Nov 6, 2018
@dtarditi
Copy link
Member

dtarditi commented Sep 2, 2019

The convert tool has been mostly rewritten (see PR #642). It now generates bounds-safe interfaces for _Ptr types. Work on inferring bounds expressions is on-going.

@dtarditi dtarditi closed this as completed Sep 2, 2019
@nmeum
Copy link
Contributor Author

nmeum commented Feb 20, 2020

Hey, I am just revisiting Checked C after almost two years. First of all thanks for your continued work on the project! Regarding, checked-c-convert it does seem to generate in bounds-safe interfaces now. However, I would like it to always generate bounds-safe interface for my use case, maybe through a command line flags such as --always-use-bounds-safe?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature This labels new features and enhancements.
Projects
None yet
Development

No branches or pull requests

3 participants