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

unhandled integer overflow in matrix view construction #1418

Open
Lishen1 opened this issue Jun 24, 2024 · 1 comment
Open

unhandled integer overflow in matrix view construction #1418

Lishen1 opened this issue Jun 24, 2024 · 1 comment
Labels

Comments

@Lishen1
Copy link

Lishen1 commented Jun 24, 2024

a.fixed_view_mut::<3, 3>(0, 18446744073709551613).add_assign(b); lead to error: munmap_chunk(): invalid pointer in release build mode or thread 'main' panicked at nalgebra-0.32.5/src/base/matrix_view.rs:283:13: attempt to add with overflow in debug build mode

@Andlon Andlon added the bug label Jun 24, 2024
@Andlon
Copy link
Sponsor Collaborator

Andlon commented Jun 24, 2024

This appears to be a failure of assert_view_index to take into account usize overflow, here:

fn assert_view_index(

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

No branches or pull requests

2 participants