SIP auth fails with gcc 5.x build
Bug #1497871 reported by
Ryan Murray
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
sflphone (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
With gcc 5.x, valgrind indicates that the SIP password is pointing at
a value on the stack in a different function. The use of the temporary
std::string on the stack causes the cred_[i].data assignment to point to
a stack address, that isn't be valid by the time the password is needed
to do auth. This fixes the password pointer to be like the other auth
strings set in this function, and fixes SIP auth.
To post a comment you must log in.
The attachment "fix_auth.patch" seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team.
[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]