-
Notifications
You must be signed in to change notification settings - Fork 243
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CCB: Use weak_ptr<WebsocketSession> instead of raw ptrs #3181
Comments
@joeygrover -san @theresalech -san This issue is a high priority for Toyota. Could you please tell me reproduction steps? Also, Does this issue occur in the latest version? |
Hi @E-SAITO-TMC, we have documented that this is priority for Toyota, and will include for Steering Committee review and vote when planning the contents for the Q4 Core release. This planning will take place in June. |
This issue has ho reproduction steps. |
@LuxoftAKutsan thank you for the update. Please advise when a PR has been submitted. |
@theresalech fix has been submitted and ready for Livio review |
Closed via #3490 |
Bug Report
Use weak_ptr instead of raw ptrs
Detailed analysis:
Its a reason for possible SIGSEGVs. It's bad practice to use raw pointers to WebsocketSession in almost all cases. For function arguments, pointers should be changed to references for preventing null pointer occurrence. For containers pointers should be changed to weak_ptr for preventing
expired references. Wrong inheritance for CMessageBrokerController should be removed.
Reproduction Steps
Expected Behavior
SDL should not crash
Observed Behavior
SDL crashed
OS & Version Information
The text was updated successfully, but these errors were encountered: