Skip to content
This repository has been archived by the owner on Sep 1, 2023. It is now read-only.

Fix sp no winners crash #1391

Closed
wants to merge 2 commits into from

Conversation

breznak
Copy link
Member

@breznak breznak commented Jan 12, 2018

Small PR that just avoids detected crash

  • adds test with small SP that would crash
    • fix by avoiding out-of-bounds indexing in isWinner_ method.

Fixes #1390

there was a case where 0 winners are and we referenced index[-1]
winners>0 at least handles that.
@breznak
Copy link
Member Author

breznak commented Jan 19, 2018

Repo freeze.
Moved to htm-community#6
Closing here

@breznak breznak closed this Jan 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

SP crashes on compute when no winners (no active columns) - caused by too few columns
1 participant