We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Some odd itype behavior when running checked-c-convert on some memory functions, here's a short repro:
#include <string_checked.h> void MemoryCopy(void* dest, const void* src, int sSize) { if (dest != NULL && src != NULL) { memmove(dest, src, sSize); } }
Expected conversion (given the definition of memmove): void MemoryCopy(void *dest : byte_count(sSize), const void *src : byte_count(sSize) , int sSize)
void MemoryCopy(void *dest : byte_count(sSize), const void *src : byte_count(sSize) , int sSize)
What I saw: void MemoryCopy(void *dest : itype(void* ), const void *src : itype(_Ptr<const void>), int sSize)
void MemoryCopy(void *dest : itype(void* ), const void *src : itype(_Ptr<const void>), int sSize)
Both itypes are wrong, since memmove requires a byte_count and so cannot be _Ptr type, but the one for dest is especially confused.
The text was updated successfully, but these errors were encountered:
The convert tool has been mostly rewritten (see PR #642). Please reopen this issue if it still exists.
Sorry, something went wrong.
Constrain printf("%s") arguments to _Nt_array_ptr. (#550)
printf("%s")
_Nt_array_ptr
94f096b
Fixes #549.
awruef
No branches or pull requests
Some odd itype behavior when running checked-c-convert on some memory functions, here's a short repro:
Expected conversion (given the definition of memmove):
void MemoryCopy(void *dest : byte_count(sSize), const void *src : byte_count(sSize) , int sSize)
What I saw:
void MemoryCopy(void *dest : itype(void* ), const void *src : itype(_Ptr<const void>), int sSize)
Both itypes are wrong, since memmove requires a byte_count and so cannot be _Ptr type, but the one for dest is especially confused.
The text was updated successfully, but these errors were encountered: