Closed Bug 230849 Opened 21 years ago Closed 21 years ago

LossyCopyUTF16toASCII() and CopyASCIItoUTF16() don't work right when passed null.

Categories

(Core :: XPCOM, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: jst, Assigned: jst)

Details

Attachments

(1 file)

If null is passed to either LossyCopyUTF16toASCII() or CopyASCIItoUTF16() the destination string is not truncated. All other Copy*() functions do this right (as far as I could see), these should too. Patch coming up.
Attachment #138999 - Flags: superreview?(peterv)
Attachment #138999 - Flags: review?(jshin)
Attachment #138999 - Flags: superreview?(peterv) → superreview+
Comment on attachment 138999 [details] [diff] [review] Truncate even if nothing to copy. r=jshin
Attachment #138999 - Flags: review?(jshin) → review+
Fixed.
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
Component: String → XPCOM
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: