Menu

#13 RECFM_VB while offset<= len(block_data)

Release 4.4
closed
4.4 (1)
2014-05-13
2014-05-08
RHarris
No

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):

Discussion

  • Steven F. Lott

    Steven F. Lott - 2014-05-08

    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
  • Steven F. Lott

    Steven F. Lott - 2014-05-08
    • labels: 4.3.4 --> 4.4
    • status: open --> accepted
    • assigned_to: Steven F. Lott
     
  • Steven F. Lott

    Steven F. Lott - 2014-05-08
    • status: accepted --> pending
    • Milestone: Release 4.3.3 --> Release 4.4
     
  • Steven F. Lott

    Steven F. Lott - 2014-05-13
    • status: pending --> closed
     

Log in to post a comment.

MongoDB Logo MongoDB
Gen AI apps are built with MongoDB Atlas
Atlas offers built-in vector search and global availability across 125+ regions. Start building AI apps faster, all in one place.