Skip to content

Conversation

@bjosv
Copy link

@bjosv bjosv commented Aug 6, 2025

Fixes runtime error warnings found when running the tests with the undefined behavior sanitizer enabled.

Since the CI-build is not using -fno-sanitize-recover=all the warnings are recoverable and will not fail the CI build.

grep "runtime error" aws-c-mqtt/build/Testing/Temporary/LastTest.log

aws-c-common/source/ref_count.c:29:9: runtime error: call to function s_mqtt_client_connection_start_destroy through pointer to incorrect function type 'void (*)(void *)'
aws-c-common/source/ref_count.c:29:9: runtime error: call to function s_aws_mqtt_client_destroy through pointer to incorrect function type 'void (*)(void *)'

The warnings are also found when a user incorporates aws-sdk-cpp into a project and build it using an UB sanitizer.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Fixes runtime error warnings found when running the tests
with the undefined behavior sanitizer enabled during build.

"runtime error: call to function ... through pointer to
 incorrect function type 'void (*)(void *)'"

Signed-off-by: Björn Svensson <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant