am 7e6e9701
: Merge "Fix: Native crash when an empty attribute is written."
* commit '7e6e97014d7d031f233267220a627b3dfdfd26dc': Fix: Native crash when an empty attribute is written.
This commit is contained in:
commit
372ce55954
1 changed files with 3 additions and 0 deletions
|
@ -139,6 +139,9 @@ const char *const HeaderReadWriteUtils::REQUIRES_FRENCH_LIGATURE_PROCESSING_KEY
|
|||
int *const writingPos) {
|
||||
for (AttributeMap::const_iterator it = headerAttributes->begin();
|
||||
it != headerAttributes->end(); ++it) {
|
||||
if (it->first.empty() || it->second.empty()) {
|
||||
continue;
|
||||
}
|
||||
// Write a key.
|
||||
if (!buffer->writeCodePointsAndAdvancePosition(&(it->first.at(0)), it->first.size(),
|
||||
true /* writesTerminator */, writingPos)) {
|
||||
|
|
Loading…
Reference in a new issue