Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Fix a possible write a long string in case where the string length is <= 1024 but the encoded size if > 1024. Truncate long strings and warn instead of throwing an exception which could lead to an invalid registry. Since the registry data is invalid, the content is emptied to guarantee the next registry will work correct. This fix is based on #435 provided by @lanmaoxinqing, many thanks !
- Loading branch information
1 parent
3a3ccf7
commit 6de7605
Showing
2 changed files
with
87 additions
and
9 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