Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix collector crash due to non ASCII character
Message keyword processing parser can crash if it receives non ASCII character in certain scenarios. Sanitize the string before passing it to the message keyword processing parser. Note that the message write to cassandra will still fail due to non UTF8 encoded string. Add test case to validate that contrail-collector does not crash on receiving such a message. Closes-Bug: #1645885 Conflicts: src/analytics/parser_util.cc Change-Id: Ic3c9ee1e9e3c26fce21014c0f86a22061cca78b0
- Loading branch information
Megh Bhatt
committed
Dec 6, 2016
1 parent
9124c98
commit 362fd07
Showing
3 changed files
with
34 additions
and
8 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