jgigault / 42FileChecker

42FileChecker is a tiny bash script developed at 42 school for testing and checking files according to the rules of the subjects
Apache License 2.0
305 stars 56 forks source link

Doesn't correct check ft_strnew #128

Open npiatiko opened 6 years ago

npiatiko commented 6 years ago

Not correct, but successful checked by 42filechecker end validated by MOULINETTE :

char    *ft_strnew(size_t size)
{
    char *str;

    if ((str = (char*)malloc(++size)) == 0)
        return (NULL);
    while (size)
    {
        *(str + size) = '\0';
        size--;
    }
    *str = '\0';
    return (str);
}

PS problem in ++size

jgigault commented 5 years ago

Hello @npiatiko Thanks for the issue, can you provide more information? Do you mean that moulitest, libft-unit-test and/or Maintest should have failed and why? Thanks for your help.