Bug 127997 - Uninitialized memory read in nsStringBundle::FormatString

r=dougt, sr=darin, a=shaver
This commit is contained in:
bbaetz%student.usyd.edu.au 2002-03-12 05:56:29 +00:00
Родитель 0c0a6a4e75
Коммит 5b1502fd0e
1 изменённых файлов: 4 добавлений и 2 удалений

Просмотреть файл

@ -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;