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
On most 64-bit platforms a pointer size is 64-bit, while unsigned is 32-bit: https://en.cppreference.com/w/c/language/arithmetic_types#Data_models
unsigned
The typedef in fa_inttypes.h:
fa_inttypes.h
typedef unsigned uintptr_t;
and the usage of this uintptr_t like in aacenc_init() for example:
uintptr_t
aacenc_init()
uintptr_t aacenc_init(...) { fa_aacenc_ctx_t *f = (fa_aacenc_ctx_t *)malloc(sizeof(fa_aacenc_ctx_t)); ... return (uintptr_t)f;
will chop off half of the pointer value. When such pointer is dereferenced later, it causes a crash.
The text was updated successfully, but these errors were encountered:
Hi @danadam .
Yes, don't care.
Sorry, something went wrong.
9b83d1e
2.1.1: fix #1: uintptr_t
af1444d
64430fe
c9f6723
No branches or pull requests
On most 64-bit platforms a pointer size is 64-bit, while
unsigned
is 32-bit: https://en.cppreference.com/w/c/language/arithmetic_types#Data_modelsThe typedef in
fa_inttypes.h
:and the usage of this
uintptr_t
like inaacenc_init()
for example:will chop off half of the pointer value. When such pointer is dereferenced later, it causes a crash.
The text was updated successfully, but these errors were encountered: