зеркало из https://github.com/mozilla/pjs.git
Bug 724456. Don't assume that sizeof(bool) == 1 when memsetting arrays of bools in nsLineBreaker. r=bzbarsky
This commit is contained in:
Родитель
f93bf1fa8e
Коммит
873c6174a0
|
@ -206,7 +206,7 @@ nsLineBreaker::AppendText(nsIAtom* aLangGroup, const PRUnichar* aText, PRUint32
|
|||
if (aSink && (aFlags & BREAK_NEED_CAPITALIZATION)) {
|
||||
if (!capitalizationState.AppendElements(aLength))
|
||||
return NS_ERROR_OUT_OF_MEMORY;
|
||||
memset(capitalizationState.Elements(), false, aLength);
|
||||
memset(capitalizationState.Elements(), false, aLength*sizeof(bool));
|
||||
}
|
||||
|
||||
PRUint32 start = offset;
|
||||
|
|
Загрузка…
Ссылка в новой задаче