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

GenericArray::cmp() overflows stack #45

Closed
cpick opened this issue Jul 31, 2017 · 0 comments
Closed

GenericArray::cmp() overflows stack #45

cpick opened this issue Jul 31, 2017 · 0 comments

Comments

@cpick
Copy link

cpick commented Jul 31, 2017

Using generic-array = "0.8.2" the following:

#[macro_use]
extern crate generic_array;

fn main() {
    arr![u8; 0x00].cmp(&arr![u8; 0x00]);
}

Produces output:

thread 'main' has overflowed its stack
fatal runtime error: stack overflow

Relevant portion of the backtrace:

#130855 0x000055555555a953 in core::cmp::impls::{{impl}}::cmp<generic_array::GenericArray<u8, typenum::uint::UInt<typenum::uint::UTerm, typenum::bit::B1>>> (self=0x7fffffffda00, other=0x7fffffffda08) at /checkout/src/libcore/cmp.rs:889
#130856 0x000055555555a913 in generic_array::impls::{{impl}}::cmp<u8,typenum::uint::UInt<typenum::uint::UTerm, typenum::bit::B1>> (self=0x7fffffffdab0, other=0x7fffffffdab8) at /home/cpick/.cargo/registry/src/github.com-1ecc6299db9ec823/generic-array-0.8.2/src/impls.rs:63
#130857 0x000055555555a953 in core::cmp::impls::{{impl}}::cmp<generic_array::GenericArray<u8, typenum::uint::UInt<typenum::uint::UTerm, typenum::bit::B1>>> (self=0x7fffffffda80, other=0x7fffffffda88) at /checkout/src/libcore/cmp.rs:889
#130858 0x000055555555a913 in generic_array::impls::{{impl}}::cmp<u8,typenum::uint::UInt<typenum::uint::UTerm, typenum::bit::B1>> (self=0x7fffffffdab0, other=0x7fffffffdab8) at /home/cpick/.cargo/registry/src/github.com-1ecc6299db9ec823/generic-array-0.8.2/src/impls.rs:63
#130859 0x000055555555a989 in delgen::main () at src/main.rs:5

novacrazy added a commit to novacrazy/generic-array that referenced this issue Sep 1, 2017
@fizyk20 fizyk20 closed this as completed in 63dddda Sep 3, 2017
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

No branches or pull requests

1 participant