when offset == len(block_data) you are at the end of the data block, offset+4 cannot be referenced. should either be: while offset < len(block_data): or while ( offset + 4 ) <= len(block_data):
Appears to be a bug in RECFM_VB.
RECFM_VB
If offset == len(block_data), then the offset is larger than the available data. The block has been consumed; more data needs to be read.
In fixing the unit tests to reveal this problem, some bugs in the unit tests themselves were revealed.
Which, in turn, found another latent bug.
Log in to post a comment.
Appears to be a bug in
RECFM_VB.If offset == len(block_data), then the offset is larger than the available data. The block has been consumed; more data needs to be read.
In fixing the unit tests to reveal this problem, some bugs in the unit tests themselves were revealed.
Which, in turn, found another latent bug.
Last edit: Steven F. Lott 2014-05-08