-
Notifications
You must be signed in to change notification settings - Fork 25
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
Invalid bounds check in vector::Focus::narrow()
causing a bug
#330
Labels
bug
Something isn't working
Comments
ah, this is caused by a bug in |
This was referenced Jan 21, 2025
kevinaboos
changed the title
Potentially improper use of
Invalid bounds check in Jan 25, 2025
vector::Focus::narrow()
vector::Focus::narrow()
causing a bug
kevinaboos
added a commit
to project-robius/matrix-rust-sdk
that referenced
this issue
Jan 25, 2025
A bounds check was recently relaxed in `imbl`'s `Focus::narrow()` function: jneem/imbl#89, which fixed a bug that would cause a panic if the downstream user of `matrix-sdk-ui` attempted to narrow a focus of Timeline items using a range that included the last item in the Timeline. Example: project-robius/robrix#330 This fix has been incorporated in `eyeball-im` and `eyeball-im-util` and has been tested by me to no longer trigger upon the aforementioned conditions.
jplatte
pushed a commit
to matrix-org/matrix-rust-sdk
that referenced
this issue
Jan 25, 2025
A bounds check was recently relaxed in `imbl`'s `Focus::narrow()` function: jneem/imbl#89, which fixed a bug that would cause a panic if the downstream user of `matrix-sdk-ui` attempted to narrow a focus of Timeline items using a range that included the last item in the Timeline. Example: project-robius/robrix#330 This fix has been incorporated in `eyeball-im` and `eyeball-im-util` and has been tested by me to no longer trigger upon the aforementioned conditions.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Apparently thee usage of
Focus::narrow()
is incorrect here, as it may panic (not terminally, but still)robrix/src/sliding_sync.rs
Line 1801 in 85c6f00
The text was updated successfully, but these errors were encountered: