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

Add bounds check when drawing line high/low #283

Merged
merged 2 commits into from
May 10, 2020
Merged

Conversation

DarrienG
Copy link
Contributor

@DarrienG DarrienG commented May 6, 2020

Fix for underflow bug when using line generation: #280

@fdehau
Copy link
Owner

fdehau commented May 9, 2020

Thanks for reporting the issue. The fix makes sense but could you also add a test to cover this edge case ?

@DarrienG
Copy link
Contributor Author

DarrienG commented May 9, 2020

Totally! I'm honestly not certain how to exactly hit the erroneous codepath, but I added a test that recreates the conditions I got the crash. If there's a better way to trigger the error, I can revise :)

@fdehau fdehau merged commit 359b7fe into fdehau:master May 10, 2020
24seconds pushed a commit to 24seconds/tui-rs that referenced this pull request Nov 30, 2020
…hau#283)

* Add bounds check when drawing line high/low
* Add test to ensure codepath doesn't break
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants