Project

General

Profile

Actions

Bug #62492

closed

libcephsqlite: short reads fill 0s at beginning of buffer

Added by Patrick Donnelly 9 months ago. Updated 7 months ago.

Status:
Resolved
Priority:
Immediate
Target version:
% Done:

0%

Source:
Development
Tags:
backport_processed
Backport:
reef,quincy,pacific
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

"If xRead() returns SQLITE_IOERR_SHORT_READ it must also fill in the unread portions of the buffer with zeros. A VFS that fails to zero-fill short reads might seem to work. However, failure to zero-fill short reads will eventually lead to database corruption. "

https://www.sqlite.org/c3ref/io_methods.html

https://github.com/ceph/ceph/blob/dd5f8e078fe1235d25c9aca356bdd3eb2a9ed6b4/src/libcephsqlite.cc#L356


Related issues 3 (0 open3 closed)

Copied to cephsqlite - Backport #62553: reef: libcephsqlite: short reads fill 0s at beginning of bufferResolvedPatrick DonnellyActions
Copied to cephsqlite - Backport #62554: quincy: libcephsqlite: short reads fill 0s at beginning of bufferResolvedPatrick DonnellyActions
Copied to cephsqlite - Backport #62555: pacific: libcephsqlite: short reads fill 0s at beginning of bufferResolvedPatrick DonnellyActions
Actions

Also available in: Atom PDF