1 --- raptor2-2.0.15/src/raptor_rfc2396.c.CVE-2024-57823 2014-07-26 23:07:37.000000000 +0200
2 +++ raptor2-2.0.15/src/raptor_rfc2396.c 2025-01-13 12:59:22.175568228 +0100
3 @@ -289,10 +289,8 @@ raptor_uri_normalize_path(unsigned char*
7 -#if defined(RAPTOR_DEBUG)
8 if(path_len != strlen((const char*)path_buffer))
9 RAPTOR_FATAL4("Path '%s' length %ld does not match calculated %ld.", (const char*)path_buffer, (long)strlen((const char*)path_buffer), (long)path_len);
12 /* Remove all "<component>/../" path components */
14 @@ -327,10 +325,8 @@ raptor_uri_normalize_path(unsigned char*
18 -#if defined(RAPTOR_DEBUG)
19 if(path_len != strlen((const char*)path_buffer))
20 RAPTOR_FATAL3("Path length %ld does not match calculated %ld.", (long)strlen((const char*)path_buffer), (long)path_len);
23 /* If the current one is '..' */
24 if(s == (cur+2) && cur[0] == '.' && cur[1] == '.') {
25 @@ -393,10 +389,8 @@ raptor_uri_normalize_path(unsigned char*
29 -#if defined(RAPTOR_DEBUG)
30 if(path_len != strlen((const char*)path_buffer))
31 RAPTOR_FATAL3("Path length %ld does not match calculated %ld.", (long)strlen((const char*)path_buffer), (long)path_len);
34 /* RFC3986 Appendix C.2 / 5.4.2 Abnormal Examples
35 * Remove leading /../ and /./