Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix bug in bitsequence.pushReservation #771

Merged
merged 1 commit into from
Nov 25, 2015
Merged

Fix bug in bitsequence.pushReservation #771

merged 1 commit into from
Nov 25, 2015

Conversation

aboch
Copy link
Contributor

@aboch aboch commented Nov 24, 2015

  • pushReservation fails to correctly detect when
    the affected block is the last in the current
    sequence. It thinks instead the block is in between
    the sequence. Because of this a couple of issues
    may happen:
    1. The allocation of the last bit causes the creation
      of a phantom sequence (length 0) at the end.
      (This has no side effects).
    2. The allocation of a bit somewhere in the middle of
      the bitmask may lead to a completely incorrect
      sequence pattern.

Signed-off-by: Alessandro Boch aboch@docker.com

- pushReservation fails to correctly detect when
  the affected block is the last in the current
  sequence. It thinks instead the block is in between
  the sequence. Because of this a couple of issues
  may happen:
   1. The allocation of the last bit causes the creation
      of a phantom sequence (length 0) at the end.
      (This has no side effects).
   2. The allocation of a bit somewhere in the middle of
      the bitmask may lead to a completely incorrect
      sequence pattern.

Signed-off-by: Alessandro Boch <aboch@docker.com>
@dave-tucker
Copy link
Contributor

LGTM

1 similar comment
@mrjana
Copy link
Contributor

mrjana commented Nov 25, 2015

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants