- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Test peap with join_ext command in console debug build test code will always hit assertion.
In peap case, join_ent() calls
wiced_tls_init_identity( &identity, NULL, 0, NULL, 0 );
So it always hit below assertion:
wiced_assert( "Bad args", (identity != NULL) && (private_key != NULL) && (certificate_data != NULL) );
And looking at the implementation in wiced_tls_init_identity:
Below checking looks wrong:
if ( ( certificate_data != NULL ) || ( certificate_length != 0 ) )
if ( ( private_key != NULL ) || ( key_length != 0 ) )
e.g. Pass NULL to private_key with non-zero key_length will hit null pointer dereference.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have raised a ticket on this issue. You can comment out the wiced_assert( "Bad args", (identity != NULL) && (private_key != NULL) && (certificate_data != NULL) ); for now.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have no problem to fix it by myself.
The reason I post it here is to make your sdk better.
I hope after you raised a ticket on the issue, this will be fixed in *next release*.
From the experience I found raise a ticket and get fixed has a very long gap.
For some issues, I even remind multiple times but still does not get fix.
e.g.
https://community.cypress.com/thread/8502
https://community.cypress.com/thread/7781
https://community.cypress.com/thread/8102
Would you consider to improve your internal process?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I believe this issue has been resolved so I will close this thread.