{"action":"opened","issue":{"url":"https://api.github.com/repos/alelievr/libft-unit-test/issues/21","repository_url":"https://api.github.com/repos/alelievr/libft-unit-test","labels_url":"https://api.github.com/repos/alelievr/libft-unit-test/issues/21/labels{/name}","comments_url":"https://api.github.com/repos/alelievr/libft-unit-test/issues/21/comments","events_url":"https://api.github.com/repos/alelievr/libft-unit-test/issues/21/events","html_url":"https://github.com/alelievr/libft-unit-test/issues/21","id":194948008,"number":21,"title":"Bug with ft_strrchr","user":{"login":"cnovo-ri","id":24413265,"avatar_url":"https://avatars.githubusercontent.com/u/24413265?v=3","gravatar_id":"","url":"https://api.github.com/users/cnovo-ri","html_url":"https://github.com/cnovo-ri","followers_url":"https://api.github.com/users/cnovo-ri/followers","following_url":"https://api.github.com/users/cnovo-ri/following{/other_user}","gists_url":"https://api.github.com/users/cnovo-ri/gists{/gist_id}","starred_url":"https://api.github.com/users/cnovo-ri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cnovo-ri/subscriptions","organizations_url":"https://api.github.com/users/cnovo-ri/orgs","repos_url":"https://api.github.com/users/cnovo-ri/repos","events_url":"https://api.github.com/users/cnovo-ri/events{/privacy}","received_events_url":"https://api.github.com/users/cnovo-ri/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-12-12T11:12:43Z","updated_at":"2016-12-12T11:12:43Z","closed_at":null,"body":"Le test ne valide pas la fonction environ une fois sur deux en me précisant \"[crash]: your strrchr crash cause it read too many bytes or attempt to write on s !\", mais pourtant quand je relance quelques fois ca passe. Cette fonction passes tout les autres tests (42 FC, Maintest, Libftest, Moulitest).\r\n\r\nvoici le code concerné :\r\n\r\n#include \"libft.h\"\r\n\r\nchar         *ft_strrchr(const char *s, int c)\r\n{\r\n    size_t  i;\r\n    char    *str;\r\n\r\n     str = (char *)s;\r\n     i = ft_strlen(s);\r\n     if ((char)c == '\\0')\r\n          return (&str[i]);\r\n     while (str[i] >= 0)\r\n      {\r\n           if (str[i] == (char)c)\r\n               return (&str[i]);\r\n            i--;\r\n        }\r\n         return (0);\r\n}"}}
{"actor":{"display_login":"cnovo-ri"}}