Issue #1979 Fix Redbook frame issue parsing redbook data with a default header at the end of the buffer.
Change-Id: I30d89f84bbecf3250f491106b337c9c12ec88bb9 Former-commit-id:13c449eb5d
[formerly 90e1c8b65baad0af8f8a7a27b6b308b504c1be27] Former-commit-id:b0f07f4a83
This commit is contained in:
parent
150b116995
commit
f3428938df
1 changed files with 2 additions and 1 deletions
|
@ -37,6 +37,7 @@ import org.apache.commons.logging.LogFactory;
|
|||
* 20080512 1131 jkorman Initial implementation.
|
||||
* Apr 29, 2013 1958 bgonzale Added class RedbookBlockHeader,
|
||||
* and nested Factory interface.
|
||||
* May 06, 2013 1979 bgonzale Catch Header at the end of buffer.
|
||||
*
|
||||
* </pre>
|
||||
*
|
||||
|
@ -76,7 +77,7 @@ public abstract class RedbookBlock {
|
|||
|
||||
this.header = header;
|
||||
|
||||
hasLength = (this.header.hdr & LEN_MASK) == 0;
|
||||
hasLength = ((this.header.hdr & LEN_MASK) == 0 && data.hasRemaining());
|
||||
|
||||
hasChkSum = (this.header.hdr & CHKSUM_MASK) == 0;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue