[Psi-Devel] Bug Report: Psi crashes when sending a message to an offline user

2 views
Skip to first unread message

Norka Lucena

unread,
Nov 2, 2011, 1:09:14 PM11/2/11
to Psi Development
The crash occurs when sending a message to one of your contacts and that
contacts goes offline at the exact moment you are sending the message.
Although observation of the crash was accidental, you can reproduce it
as follows:

Sender's side:
1. Right click on a any online contact.
2. Select the option 'Send Message To'.
3. Select a specific resource, but do not click.

Receiver's side:
4. Go offline in the specific resource.

Sender's side:
5. Click to send meeting invitation .


The crash occurs because of an invalid reference access in the function
ContactProfile::doContextMenu in contactview.cpp, line 1546.

1544 //if(res > 0) {
1545 const UserResource &r = rl[res];
1546 rname = r.name();
1547 //}

Notice that removing the comment will not really solve the problem. The
problem is caused by rl (resource list) becoming empty before the rname
(resource name) assignment. r is invalid.

Do you plan to fix this problem any time soon?


--

Norka Lucena
CollabWorx, Inc.

CONFIDENTIALITY NOTICE - This email is ONLY for the person(s) named in
the message header. Unless otherwise indicated, it contains information
that is confidential, privileged or exempt from disclosure under
applicable law. If you have received it in error, please notify the
sender of the error and delete the message.
_______________________________________________
Psi-Devel mailing list
Psi-...@lists.affinix.com
http://lists.affinix.com/listinfo.cgi/psi-devel-affinix.com

Reply all
Reply to author
Forward
0 new messages