Codechange: All ParagraphLayoutFactory::AppendToBuffer assume that the buffer has at least some space.
Assert on that.
This commit is contained in:
@@ -522,6 +522,7 @@ std::unique_ptr<const ICUParagraphLayout::Line> ICUParagraphLayout::NextLine(int
|
||||
|
||||
/* static */ size_t ICUParagraphLayoutFactory::AppendToBuffer(UChar *buff, const UChar *buffer_last, char32_t c)
|
||||
{
|
||||
assert(buff < buffer_last);
|
||||
/* Transform from UTF-32 to internal ICU format of UTF-16. */
|
||||
int32_t length = 0;
|
||||
UErrorCode err = U_ZERO_ERROR;
|
||||
|
Reference in New Issue
Block a user