Closed Bug 1542104 Opened 6 years ago Closed 6 years ago

LSNG: Incorrect usage calculation of archived data

Categories

(Core :: Storage: localStorage & sessionStorage, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla68
Tracking Status
firefox68 --- fixed

People

(Reporter: janv, Assigned: janv)

References

(Blocks 1 open bug)

Details

Attachments

(2 files)

We found out in bug 1541681 that utf16Length returns incorrect results if passed value contains NULs.

We should use "sqlite3_value_bytes16 / 2" instead of letting nsDependentString to do the calculation since it finishes after first NUL character.

See Also: → 1541681
Attached patch patchSplinter Review

Attached the patch here too. It seems that phabricator has problems with the binary file. Or maybe it's a bug in my "hg phabsend", don't know.

Assignee: nobody → jvarga
Pushed by jvarga@mozilla.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/7e3dcd57fe92 LSNG: Incorrect usage calculation of archived data; r=asuth
Blocks: 1540402
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla68

Filed bug 1546561 to fix remaining issues.

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: