aws / amazon-freertos

DEPRECATED - See README.md
https://aws.amazon.com/freertos/
MIT License
2.54k stars 1.1k forks source link

[BUG] Array bound warning observed in iot_test_tcp.c #3525

Closed RashidAhmed-Silabs closed 1 year ago

RashidAhmed-Silabs commented 1 year ago

Description: Observing the array bound warning in iot_test_tcp.c (libraries/abstractions/secure_sockets/test) Please find the attached screenshot for the warning observed. image

The warning is being observed in the below line of code from iot_test_tcp.c Line number -2509 cFakeAddress[ sizeof( clientcredentialMQTT_BROKER_ENDPOINT ) - 3 ]++;

aggarg commented 1 year ago

What is the value of clientcredentialMQTT_BROKER_ENDPOINT? Assuming that you are compiling a test project, you are supposed to define it here - https://github.com/aws/amazon-freertos/blob/main/tests/include/aws_clientcredential.h#L37

alfred2g commented 1 year ago

Closing for no activity, please reopen if anything new comes up