eclipse-threadx / netxduo

Eclipse ThreadX - NetXDuo is an advanced, industrial-grade TCP/IP network stack designed specifically for deeply embedded real-time and IoT applications
https://github.com/eclipse-threadx/rtos-docs/blob/main/rtos-docs/netx-duo/index.md
MIT License
230 stars 131 forks source link

bug in utility/iperf/nx_iperf.c pointer used before set its value #168

Closed xuzihan351 closed 8 months ago

xuzihan351 commented 1 year ago

https://github.com/azure-rtos/netxduo/blob/master/utility/iperf/nx_iperf.c +118

    /* Create a TCP server socket.  */
    status =  nx_tcp_socket_create(nx_iperf_test_ip, &tcp_server_socket, "TCP Server Socket",
                                   NX_IP_NORMAL, NX_FRAGMENT_OKAY, NX_IP_TIME_TO_LIVE, 32 * 1024,
                                   NX_NULL, nx_iperf_tcp_rx_disconnect_received);

Should nx_iperf_test_ip be ip_ptr? nx_iperf_test_ip is a null pointer but be used before set its value.

bo-ms commented 1 year ago

Hi @xuzihan351 Thanks for reporting the issue, we are checking it.

yajunxiaMS commented 10 months ago

@xuzihan351 This issue has been fixed internally and will be reflected in the next release.

bo-ms commented 8 months ago

Hi @xuzihan351 The issue has been fixed in the latest version 6.3.0, could you try it? thanks.

bo-ms commented 8 months ago

Closing