Closed
Bug 292723
Opened 20 years ago
Closed 20 years ago
pReconv->dwSize value is invalid
Categories
(Core :: Internationalization, defect, P1)
Tracking
()
RESOLVED
FIXED
mozilla1.8beta2
People
(Reporter: masayuki, Assigned: masayuki)
Details
(Keywords: crash, intl)
Attachments
(1 file, 1 obsolete file)
1.32 KB,
patch
|
masayuki
:
review+
bzbarsky
:
superreview+
asa
:
approval1.8b2+
|
Details | Diff | Splinter Review |
in nsWindow.cpp#7060
http://lxr.mozilla.org/seamonkey/source/widget/src/windows/nsWindow.cpp#7060
the dwIndex is set sizeof(RECONVERTSTRING).
But it is invalid. we should set *oResult.
see
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/intl/ime_58tu.asp
"dwSize
Specifies the size of this structure *and the memory block it heads*."
On Win9x, if we reconvert with ATOK, it is crashed sometimes.
On WinXP, if we using MS-IME 2003, we cannot reconvert.
Assignee | ||
Updated•20 years ago
|
Status: NEW → ASSIGNED
Assignee | ||
Updated•20 years ago
|
Priority: -- → P1
Target Milestone: --- → mozilla1.8beta2
Assignee | ||
Comment 1•20 years ago
|
||
> the dwIndex is set sizeof(RECONVERTSTRING).
Oops. that is dwSize, not dwIndex.
Assignee | ||
Comment 2•20 years ago
|
||
Attachment #182489 -
Flags: review?(timeless)
Attachment #182489 -
Flags: review?(timeless) → review+
Assignee | ||
Updated•20 years ago
|
Attachment #182489 -
Flags: superreview?(bzbarsky)
![]() |
||
Comment 3•20 years ago
|
||
Comment on attachment 182489 [details] [diff] [review]
Patch rv1.0
>Index: widget/src/windows/nsWindow.cpp
>+ if (pReconv->dwSize < *oResult) {
>+ NS_ASSERTION(pReconv->dwSize >= *oResult, "Reconvert structure size is invalid");
>+ *oResult = 0;
>+ return PR_FALSE;
>+ }
This block makes no sense. If you mean an NS_ERROR, use an NS_ERROR. But in
general, is this a fatal condition? Or one you expect to see sometimes? In
the former case, just NS_ERROR and don't bother returning. In the latter case,
you're handling the problem, so no need for NS_ERROR.
Assignee | ||
Comment 4•20 years ago
|
||
Attachment #182489 -
Attachment is obsolete: true
Attachment #182596 -
Flags: superreview?(bzbarsky)
Attachment #182596 -
Flags: review+
Assignee | ||
Updated•20 years ago
|
Attachment #182489 -
Flags: superreview?(bzbarsky) → superreview-
![]() |
||
Updated•20 years ago
|
Attachment #182596 -
Flags: superreview?(bzbarsky) → superreview+
Assignee | ||
Comment 5•20 years ago
|
||
Comment on attachment 182596 [details] [diff] [review]
Patch rv1.1
This is critical problem on Win9x and major problem with MS-IME2003.
The risk is low.
Attachment #182596 -
Flags: approval1.8b2?
Comment 6•20 years ago
|
||
Comment on attachment 182596 [details] [diff] [review]
Patch rv1.1
a=asa
Attachment #182596 -
Flags: approval1.8b2? → approval1.8b2+
Assignee | ||
Comment 7•20 years ago
|
||
checked-in.
Status: ASSIGNED → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•