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) → superreview+
Comment on attachment 138999 [details] [diff] [review] Truncate even if nothing to copy. r=jshin
Attachment #138999 - Flags: review?(jshin) → review+
Status: NEW → RESOLVED
Last Resolved: 15 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.