Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

Disallow array_ptrs to function types #34

Closed
secure-sw-dev-bot opened this issue Jan 14, 2022 · 1 comment
Closed

Disallow array_ptrs to function types #34

secure-sw-dev-bot opened this issue Jan 14, 2022 · 1 comment

Comments

@secure-sw-dev-bot
Copy link

This issue was copied from checkedc/checkedc#34


Function types have no size associated with them. For this reason, it does not make sense to have array_ptrs to function types. Pointer arithmetic is not meaningful for these kinds of array_ptrs, which implies that we can't define bounds checks for these kinds of pointers.

@secure-sw-dev-bot
Copy link
Author

Comment from @dtarditi:

The specification has been updated. Compiler support has been added for this check too.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant