mirror of
https://git.code.sf.net/p/ntfs-3g/ntfs-3g.git
synced 2024-11-23 18:14:24 +08:00
Fixed accessing next log buffer only when it exists
Do not locate the next log buffer until it is known to exist.
This commit is contained in:
parent
ca70766dc4
commit
5efc87cce8
@ -3381,7 +3381,6 @@ static TRISTATE backward_rcrd(CONTEXT *ctx, u32 blk, int skipped,
|
||||
if (prevbuf)
|
||||
prevrph = &prevbuf->block.record;
|
||||
data = buf->block.data;
|
||||
nextdata = nextbuf->block.data;
|
||||
if (rph && (rph->head.magic == magic_RCRD)
|
||||
&& (!prevrph || (prevrph->head.magic == magic_RCRD))) {
|
||||
if (optv) {
|
||||
@ -3465,6 +3464,7 @@ static TRISTATE backward_rcrd(CONTEXT *ctx, u32 blk, int skipped,
|
||||
&& ((k == endoff) || !endoff)
|
||||
&& ((u32)(k + LOG_RECORD_HEAD_SZ) <= blocksz)) {
|
||||
if (nextbuf && (blk >= BASEBLKS)) {
|
||||
nextdata = nextbuf->block.data;
|
||||
state = backoverlap(ctx, blk,
|
||||
data, nextdata, k);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user