Lines Matching defs:input
405 /* excessive input length */
656 * If the given input string is syntactically wrong IPv4 or any part for
659 * Output the "normalized" version of that input string in plain quad decimal
889 UNITTEST int dedotdotify(const char *input, size_t clen, char **outp);
890 UNITTEST int dedotdotify(const char *input, size_t clen, char **outp)
893 const char *endp = &input[clen];
898 if((clen < 2) || !memchr(input, '.', clen))
910 if(*input == '.') {
911 /* A. If the input buffer begins with a prefix of "../" or "./", then
912 remove that prefix from the input buffer; otherwise, */
914 if(!strncmp("./", input, 2)) {
915 input += 2;
918 else if(!strncmp("../", input, 3)) {
919 input += 3;
922 /* D. if the input buffer consists only of "." or "..", then remove
923 that from the input buffer; otherwise, */
925 else if(!strcmp(".", input) || !strcmp("..", input) ||
926 !strncmp(".?", input, 2) || !strncmp("..?", input, 3)) {
933 else if(*input == '/') {
934 /* B. if the input buffer begins with a prefix of "/./" or "/.", where
936 the input buffer; otherwise, */
937 if(!strncmp("/./", input, 3)) {
938 input += 2;
941 else if(!strcmp("/.", input) || !strncmp("/.?", input, 3)) {
947 /* C. if the input buffer begins with a prefix of "/../" or "/..",
949 "/" in the input buffer and remove the last segment and its
952 else if(!strncmp("/../", input, 4)) {
953 input += 3;
963 else if(!strcmp("/..", input) || !strncmp("/..?", input, 4)) {
981 /* E. move the first path segment in the input buffer to the end of
984 character or the end of the input buffer. */
987 *outptr++ = *input++;
989 } while(*input && (*input != '/') && (*input != '?'));
994 } while(input < endp);
1752 /* excessive input length */