зеркало из https://github.com/mozilla/gecko-dev.git
#=66715
sr=jst d=unsinged integer tested for < 0, removed the test, since it will always be 0 or greater.
This commit is contained in:
Родитель
e332a1bea4
Коммит
5585a2f82a
|
@ -413,7 +413,7 @@ nsGenericDOMDataNode::ReplaceData(nsIContent *aOuterContent, PRUint32 aOffset,
|
|||
|
||||
// sanitize arguments
|
||||
PRUint32 textLength = mText.GetLength();
|
||||
if ((aOffset > textLength) || (aOffset < 0) || (aCount < 0)) {
|
||||
if (aOffset > textLength) {
|
||||
return NS_ERROR_DOM_INDEX_SIZE_ERR;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче