Open Bug 1894638 Opened 2 years ago Updated 1 year ago

Stop using [array] in storage/

Categories

(Core :: SQLite and Embedded Database Bindings, task, P3)

task

Tracking

()

People

(Reporter: mak, Unassigned)

References

(Blocks 1 open bug)

Details

See the blocked bug

Product: Toolkit → Core
See Also: → 1972349
Duplicate of this bug: 1972349
See Also: 1972349

I looked at this a little, but it is a bit tricky. I think this is why Boris gave up. Anyways, Row is a wrapper around an nsIVariant, so doing this cleanly will likely require adding a new nsIVariant method that returns an nsTArray, then going through and implementing that in every layer of our variant implementations until you hit the point where it clones out the raw data from the underlying nsDiscriminated union.

Bug 1971994 demonstrates why this conversion is a good idea. Some new uses of the raw array GetBlob methods were added that failed to deal with freeing the buffer around error handling control flow, resulting in a slow but steady main process leak.

See Also: → 1971994
You need to log in before you can comment on or make changes to this bug.