libftTester icon indicating copy to clipboard operation
libftTester copied to clipboard

New test for ft_substr

Open Tesla-J opened this issue 6 months ago • 1 comments

This new test helps to check if allocated memory is excessive when we start close to the end of the string and len is less than the length of the string.

Previous tests do not take this in account, mbueno-g's test helped me to find this out.

Tesla-J avatar Jun 26 '25 15:06 Tesla-J

Hey Tesla-J, thanks for your interest. Isn't that undefined behavior since the start is greater than the end? If so, it shouldn't be tested.

Tripouille avatar Sep 28 '25 06:09 Tripouille