зеркало из https://github.com/mozilla/pjs.git
Bug 127997 - Uninitialized memory read in nsStringBundle::FormatString
r=dougt, sr=darin, a=shaver
This commit is contained in:
Родитель
0c0a6a4e75
Коммит
5b1502fd0e
|
@ -196,7 +196,8 @@ nsIndexedToHTML::OnStartRequest(nsIRequest* request, nsISupports *aContext) {
|
|||
};
|
||||
|
||||
rv = mBundle->FormatStringFromName(NS_LITERAL_STRING("DirTitle").get(),
|
||||
formatTitle, sizeof(formatTitle),
|
||||
formatTitle,
|
||||
sizeof(formatTitle)/sizeof(PRUnichar*),
|
||||
getter_Copies(title));
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
buffer.Append(title);
|
||||
|
@ -223,7 +224,8 @@ nsIndexedToHTML::OnStartRequest(nsIRequest* request, nsISupports *aContext) {
|
|||
};
|
||||
|
||||
rv = mBundle->FormatStringFromName(NS_LITERAL_STRING("DirTitle").get(),
|
||||
formatHeading, sizeof(formatHeading),
|
||||
formatHeading,
|
||||
sizeof(formatHeading)/sizeof(PRUnichar*),
|
||||
getter_Copies(title));
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче