Closed Bug 336230 Opened 19 years ago Closed 19 years ago

doubtful ASYNC_SYNC case

Categories

(Core :: SQLite and Embedded Database Bindings, defect, P1)

defect

Tracking

()

RESOLVED FIXED
mozilla1.8.1beta1

People

(Reporter: sync2d, Assigned: brettw)

References

Details

(Keywords: dataloss, fixed1.8.1)

Attachments

(1 file)

http://lxr.mozilla.org/seamonkey/source/storage/src/mozStorageAsyncIO.cpp#1312 1312 case ASYNC_SYNC: 1313 NS_ASSERTION(pBase, "Must have base writer for writing"); 1314 NS_ASSERTION(sqliteOrigTruncate, "No seek pointer"); 1315 rc = sqliteOrigSeek(pBase, aMessage->mOffset); 1316 break; The second assertion has an expr and message inconsistent. Calling sqliteOrigSeek() for ASYNC_SYNC seems to be an error. And, the argument for ASYNC_SYNC is mBytes but not mOffset.
Assignee: vladimir → brettw
Priority: -- → P1
Target Milestone: --- → mozilla1.8.1beta1
This would cause the possibility of losing data (for places, bookmarks and history) on crash.
Flags: blocking-firefox2?
Keywords: dataloss
Attached patch PatchSplinter Review
shutdown@flashmail.com: Thanks for finding this bug!
Attachment #222553 - Flags: first-review?(vladimir)
Attachment #222553 - Flags: approval-branch-1.8.1?(vladimir)
Whiteboard: has patch
Comment on attachment 222553 [details] [diff] [review] Patch Youch. r+a=me
Attachment #222553 - Flags: first-review?(vladimir)
Attachment #222553 - Flags: first-review+
Attachment #222553 - Flags: approval-branch-1.8.1?(vladimir)
Attachment #222553 - Flags: approval-branch-1.8.1+
Fixed on trunk and 1.8 branch.
Status: NEW → RESOLVED
Closed: 19 years ago
Keywords: fixed1.8.1
Resolution: --- → FIXED
Backed out of branch because tree was closed. Reopening so I remember to re-check in when branch is open. It's still on trunk.
Status: RESOLVED → REOPENED
Keywords: fixed1.8.1
Resolution: FIXED → ---
Fixed on branch again.
Status: REOPENED → RESOLVED
Closed: 19 years ago19 years ago
Keywords: fixed1.8.1
Resolution: --- → FIXED
Whiteboard: has patch
Flags: blocking-firefox2? → blocking-firefox2+
Product: Toolkit → Core
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: