Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
In XmppMessageBuilder::GetData() don't return temporary stack variabl…
…e address In XmppMessageBuilder::GetData(), address of a string allocated in stack as a temporary variable was returned to the caller in some case. This can cause memory corruption because the the temporary string will get destroyed right after it goes out of scope, in this case when we return to the caller from GetData(). Fixed by ensuring that caller of GetData() provides the necessary temporary storage space for the "temp" std::string Change-Id: I27e622a34b72717cad90dc9553936182c2a77c6a Closes-Bug: 1759744
- Loading branch information
1 parent
eb2aef2
commit c9e40b1
Showing
8 changed files
with
21 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters