1 Reply Latest reply on Apr 6, 2016 9:46 PM by axel.lin_1746341

    Bug in wiced_network_common.c:wiced_network_up_default ?

    mgrtrifork

      wiced_network_up_default(...) starts with the following lines:

       

          /* Read config */

          wiced_dct_read_lock( (void**) &dct_network_config, WICED_TRUE, DCT_NETWORK_CONFIG_SECTION, 0, sizeof(platform_dct_network_config_t) );

          *interface = dct_network_config->interface;

          wiced_dct_read_unlock( dct_network_config, WICED_FALSE );

       

       

      The doc for wiced_dct_read_lock and wiced_dct_read_unlock states that the value of ptr_is_writable should match across these two calls. And they don't. Unlock thus does not free the memory allocated by lock.

       

      (When EXTERNAL_DCT is set, the  ptr_is_writable is ignored. But this is not always the case)