Cytoplasm doesn't do a proper boundcheck on ArraySort #31

Closed
opened 2024-05-17 17:55:44 +00:00 by lda · 1 comment
Contributor

Currently,

Line 268 in 5d87da3
ArraySort(Array * array, int (*compare) (void *, void *))

will crash if array->size is 0 due to an underflow error(caused by a lack of bound check).

Currently, https://git.telodendria.io/Telodendria/Cytoplasm/src/commit/5d87da31cda74e6808eebca72e9475aabde86532/src/Array.c#L268 will crash if array->size is 0 due to an underflow error(caused by a lack of bound check).
Owner

Whoops! I'll work on this one.

Whoops! I'll work on this one.
jordan added the
bug
label 2024-05-18 14:45:44 +00:00
jordan self-assigned this 2024-05-18 14:45:49 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: Telodendria/Cytoplasm#31
No description provided.