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

heapsort crash if input is empty #162

Open
jpcima opened this issue May 7, 2022 · 0 comments
Open

heapsort crash if input is empty #162

jpcima opened this issue May 7, 2022 · 0 comments

Comments

@jpcima
Copy link

jpcima commented May 7, 2022

Given 0 as lsize, the program crashes.
These are the relevant lines.

klib/ksort.h

Lines 144 to 145 in 9a063b3

size_t i; \
for (i = lsize - 1; i > 0; --i) { \

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