checkedc / checkedc-fork

This was a fork of Checked C used from 2021-2024. The changes have been merged into the original Checked C repo.
Other
26 stars 3 forks source link

Add description of format string support checking for varargs #499

Open dtarditi opened 1 year ago

dtarditi commented 1 year ago

The clang compiler has a format string checker. It checks for functions like printf that take a format string and a variable number of arguments that the variable arguments have the expected type for the format string. This covers most of the in-practice uses of varargs. We've extended the format string checker in the Checked C clang compiler to understand some simple uses of checked pointers, ensuring that those uses in varargs are safe and can be used in checked scopes.

We need to update the Wiki to describe this and add some information to the specification about this.