alelievr / libft-unit-test

455 stars 88 forks source link

Memcpy no crash #59

Closed CyberDuck79 closed 5 years ago

CyberDuck79 commented 5 years ago

Hello, I just run the libft-unit-test and the test say me that there is an error in ft_memcpy because is doesn't crash when both pointer are null and size at 0. I was first thinking that was weird that a function who do not crash can be seen as an error but then I think that surely the original memcpy behave that manner... but no. Literaly try the two functions in one main with the parameters you set in the test (I check the source) but the original function do not crash.

CyberDuck79 commented 5 years ago

OK seem the IRAISE instead of RAISE error is still there

CyberDuck79 commented 5 years ago

But my code was still false (not dst == src check) so thanks you for this update ;)

alelievr commented 5 years ago

Yep the IRAISE/RAISE issue was still here for the memcpy, it should be fixed now :)