mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Prevent crash with long string of Indic characters. Bug 445711, r=pavlov
This commit is contained in:
parent
20c3dddf35
commit
bb23c68e71
11
gfx/src/thebes/crashtests/445711.html
Normal file
11
gfx/src/thebes/crashtests/445711.html
Normal file
@ -0,0 +1,11 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
|
||||
"http://www.w3.org/TR/REC-html401-19991224/strict.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<title>Tamil testcase</title>
|
||||
</head>
|
||||
<body>
|
||||
<p>ௌௌௌௌௌௌௌௌௌௌௌௌௌௌௌௌௌௌௌௌௌௌௌௌௌௌௌௌௌௌௌௌௌௌௌௌௌௌௌ</p>
|
||||
</body>
|
||||
</html>
|
@ -1,2 +1,3 @@
|
||||
load 306902-1.xml
|
||||
load 383872-1.svg
|
||||
load 445711.html
|
||||
|
@ -1332,9 +1332,9 @@ public:
|
||||
mAttr.Elements(), &mNumGlyphs);
|
||||
|
||||
if (rv == E_OUTOFMEMORY) {
|
||||
mMaxGlyphs *= 2;
|
||||
mGlyphs.SetLength(mMaxGlyphs);
|
||||
mAttr.SetLength(mMaxGlyphs);
|
||||
mMaxGlyphs *= 2;
|
||||
continue;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user