Debian Codegraph @

ChangeLog

raw
1 NOTE: uriparser is looking for help with a few things:
2 https://github.com/uriparser/uriparser/labels/help%20wanted
3 If you can help, please get in touch. Thanks!
4
5 2026-04-27 -- 1.0.1
6
7 >>>>>>>>>>>>> SECURITY >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
8 * Fixed: [CVE-2026-42371]
9 Protect from integer overflow in text range comparison.
10 Thanks for the report and pull request to Joshua W. Windle! (GitHub #298)
11 >>>>>>>>>>>>> SECURITY >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
12 * Fixed: Fix `reallocarray` preprocessor handling for Illumos (GitHub #289)
13 * Improved: Fix an in-code comment typo in src/UriCommon.c;
14 Thanks for the report and pull request to Tim Düsterhus! (GitHub #290)
15 * Improved: CMake: Start enforcing supported C++ standard (GitHub #295)
16 * Improved: Allow use of C++11 to future unit tests (GitHub #296)
17 * Infrastructure: Cover compilation with Visual Studio 18 2026 (GitHub #301)
18 * Infrastructure: Address warning on CMake <3.10 in CI (GitHub #297)
19 * Soname: 3:1:2 — see https://verbump.de/ for what these numbers do
20 (liburiparser.so.1.2.1)
21
22 2025-12-15 -- 1.0.0
23
24 >>>>>>>>>>>>> SECURITY >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
25 * Fixed: [CVE-2025-67899]
26 Protect from stack overflow during parsing by dissolving all 13 cases
27 of recursion, both direct and indirect. The attack vector was long
28 (or crafted) URI input. The known impact is denial of service or more.
29 Thanks for the report to Sergey Svistunov!
30 Thanks for in-depth review to Tim Düsterhus! (sponsored by Tideways GmbH)
31 Thanks for C callgraph tool "egypt" (https://www.gson.org/egypt/)
32 to Andreas Gustafsson and for "dot_find_cycles.py" to Jason Antman!
33 (GitHub #282, GitHub #284)
34 >>>>>>>>>>>>> SECURITY >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
35 * Changed: Start requiring a C99 compiler (GitHub #264, GitHub #273)
36 * Changed: Require CMake >=3.15.0 (GitHub #270)
37 * Changed: Stop building tests by default (GitHub #283)
38 * Fixed: Normalization of URIs with leading dot segments
39 produced ambiguous results in the sense that a reparse
40 after normalization would have misinterpreted path parts
41 as a host (GitHub #262, GitHub #263, GitHub #265)
42 Examples of affected URIs:
43 - "scheme:/.//path1/path2"
44 - "/.//path1/path2"
45 - ".//path1/path2"
46 The fix is to not remove that dot segment.
47 Thanks to Ignace Nyamagana Butera and to Tim Düsterhus for the report!
48 * Fixed: Insufficient pointer alignment from allocation wrappers
49 used in the implementation of function uriCompleteMemoryManager.
50 (GitHub #261)
51 Thanks to Matthew Fernandez and Rolf Eike Beer for the report and review!
52 * Fixed: Do not set `absolutePath` for empty paths when removing host
53 Thanks for the report and pull request to Tim Düsterhus!
54 (GitHub #275, GitHub #276)
55 * Fixed: Documentation of functions uriCompleteMemoryManager,
56 uriEmulateCalloc, uriEmulateReallocarray and uriTestMemoryManager
57 (GitHub #261)
58 * Fixed: CMake: Remake approach to static CRT with MSVC compilers
59 Old: -DURIPARSER_MSVC_RUNTIME=/MT
60 New: -DURIPARSER_MSVC_STATIC_CRT=ON
61 (GitHub #270)
62 * Fixed: Documentation: Get CMake variables list back in sync and sorted
63 in the readme (GitHub #270)
64 * Fixed: Various typos found by Codespell
65 (https://github.com/codespell-project/codespell) (GitHub #259)
66 * Added: Add a new (and recommended to use) version of uriTestMemoryManager
67 that can challenge pointer alignment (GitHub #261)
68 New functions:
69 uriTestMemoryManagerEx
70 * Improved: Increase test coverage by mutation testing
71 Thanks for the pull request to Tim Düsterhus! (GitHub #266)
72 * Improved: Address compiler warning -Wunused-but-set-variable (GitHub #268)
73 * Improved: Deduplicate internal char set macros (GitHub #280)
74 * Infrastructure: Enable stack traces from UndefinedBehaviorSanitizer in CI
75 via environment variable UBSAN_OPTIONS (GitHub #261)
76 * Infrastructure: Bump GoogleTest to 1.12.0 in AppVeyor CI to fix the build
77 with CMake >=3.5 (GitHub #261)
78 * Infrastructure: Migrate Windows CI from AppVeyor to GitHub Actions
79 (GitHub #270)
80 * Infrastructure: Make GitHub Actions detect and reject known typos using
81 Codespell (https://github.com/codespell-project/codespell) (GitHub #259)
82 * Infrastructure: Update Clang from 20 to 21 (GitHub #267)
83 * Infrastructure: Start specifying CXX and CXXFLAGS for fuzzing CI
84 (GitHub #268)
85 * Infrastructure: Make CI report on test coverage using LLVM, and offer
86 these reports for download (GitHub #32, GitHub #269)
87 * Infrastructure: Make CI enforce clang-format clean code (GitHub #272)
88 * Soname: 3:0:2 — see https://verbump.de/ for what these numbers do
89 (liburiparser.so.1.2.0)
90
91 2025-09-03 -- 0.9.9
92
93 * Changed: Require CMake >=3.10.0 (GitHub #204)
94 * Fixed: Dissolve undefined behavior in parsing of URIs (GitHub #252)
95 Thanks to Tim Düsterhus for the report!
96 * Fixed: Normalized percent-encoded octets should have uppercase letters
97 in the host (GitHub #221, GitHub #222)
98 Thanks to Máté Kocsis for the pull request!
99 * Fixed: Fix documentation of uriEscape (GitHub #206, GitHub #207)
100 * Fixed: Docstring typo in ParseIpFourAddress (GitHub #254)
101 * Fixed: Documentation: Make Mainpage.txt bypass the C preprocessor
102 (GitHub #226, GitHub #227)
103 * Fixed: Documentation: Migrate Doxygen from ${CPP} to ${CC} -E (GitHub #192)
104 * Fixed: Fix macros URI_VER_SUFFIX_UNICODE and URI_VER_UNICODE (GitHub #258)
105 Thanks to Tim Düsterhus for the report and patch!
106 * Added: Support for copying Uri structures (GitHub #200, GitHub #230,
107 GitHub #237, GitHub #240, GitHub #250, GitHub #251)
108 Thanks to Máté Kocsis and to Tim Düsterhus!
109 New functions:
110 uriCopyUri[AW]
111 uriCopyUriMm[AW]
112 * Added: Add port normalization to NormalizeSyntax function (GitHub #231)
113 * Added: Add function HasHost to the public API (GitHub #234)
114 Thanks to Máté Kocsis for the pull request!
115 New functions:
116 uriHasHost[AW]
117 * Added: Support obtaining base runtime version (GitHub #219, GitHub #258)
118 New functions:
119 uriBaseRuntimeVersion[AW]
120 * Added: CMake: Add alias "uriparser::uriparser" (GitHub #197)
121 * Added: Integrate fuzzers from google/oss-fuzz repository and
122 improve those fuzzers on top (GitHub #209, GitHub #211, GitHub #212,
123 GitHub #214)
124 Thanks to @tyler92 for two of the related pull requests!
125 * Added: Support setting individual components of a UriUri[AW] structure
126 (GitHub #196, GitHub #249)
127 Part of this work was commissioned by the PHP Foundation.
128 Thanks to Máté Kocsis and Tim Düsterhus for the detailed review!
129 New functions:
130 uriIsWellFormedFragment[AW]
131 uriIsWellFormedHostIp4[AW]
132 uriIsWellFormedHostIp6[AW]
133 uriIsWellFormedHostIp6Mm[AW]
134 uriIsWellFormedHostIpFuture[AW]
135 uriIsWellFormedHostIpFutureMm[AW]
136 uriIsWellFormedHostRegName[AW]
137 uriIsWellFormedPath[AW]
138 uriIsWellFormedPort[AW]
139 uriIsWellFormedQuery[AW]
140 uriIsWellFormedScheme[AW]
141 uriIsWellFormedUserInfo[AW]
142 uriParseIpSixAddress[AW]
143 uriParseIpSixAddressMm[AW]
144 uriSetFragment[AW]
145 uriSetFragmentMm[AW]
146 uriSetHostAuto[AW]
147 uriSetHostAutoMm[AW]
148 uriSetHostIp4[AW]
149 uriSetHostIp4Mm[AW]
150 uriSetHostIp6[AW]
151 uriSetHostIp6Mm[AW]
152 uriSetHostIpFuture[AW]
153 uriSetHostIpFutureMm[AW]
154 uriSetHostRegName[AW]
155 uriSetHostRegNameMm[AW]
156 uriSetPath[AW]
157 uriSetPathMm[AW]
158 uriSetPortText[AW]
159 uriSetPortTextMm[AW]
160 uriSetQuery[AW]
161 uriSetQueryMm[AW]
162 uriSetScheme[AW]
163 uriSetSchemeMm[AW]
164 uriSetUserInfo[AW]
165 uriSetUserInfoMm[AW]
166 * Improved: CMake: Compile with -std=c90 by default (GitHub #232)
167 * Improved: Be consequent about and document .hostData.ipFuture .hostText
168 relation (GitHub #243)
169 * Improved: Document and cover FreeUriMembers after memset with zeros
170 (GitHub #238, GitHub #239)
171 * Improved: CLI tool "uriparse": Add missing hostData.ipFuture output
172 (GitHub #253)
173 * Improved: tests: Mass-replace ASSERT_TRUE([..] == [..]) by ASSERT_EQ
174 (GitHub #235)
175 * Improved: tests: Leverage assertion EXPECT_STREQ (GitHub #257)
176 * Improved: Percent encoding related code cleanup (GitHub #242)
177 * Improved: Documentation: Update some URLs to new HTTPS locations
178 Thanks to Hanno Böck for the pull request!
179 (GitHub #224)
180 * Improved: Documentation: Hide URI_PUBLIC (GitHub #236)
181 * Improved: Convert remaining DOS (CR/LF) newlines to Unix newlines
182 Thanks to Hanno Böck for the pull request!
183 (GitHub #225)
184 * Improved: Rename misleading variable doneMask to revertMask
185 (GitHub #233, GitHub #244)
186 * Improved: Make licensing easier to discover (GitHub #246)
187 * Changed: Documentation: For the Qt Compressed Help file, migrate from
188 naming ".qch" to "-doc.qch" (GitHub #191)
189 * Infrastructure: Update Clang from 18 to 20 (GitHub #217, GitHub #228)
190 * Infrastructure: Bump CI to Ubuntu 24.04 (GitHub #216)
191 * Infrastructure: Adapt to breaking changes in CI (GitHub #199, GitHub #204)
192 * Soname: 2:0:1 — see https://verbump.de/ for what these numbers do
193 (liburiparser.so.1.1.0)
194
195 2024-05-05 -- 0.9.8
196
197 >>>>>>>>>>>>> SECURITY >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
198 * Fixed: [CVE-2024-34402]
199 Protect against integer overflow in ComposeQueryEngine
200 (GitHub #183, GitHub #185)
201 * Fixed: [CVE-2024-34403]
202 Protect against integer overflow in ComposeQueryMallocExMm
203 (GitHub #183, GitHub #186)
204 >>>>>>>>>>>>> SECURITY >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
205 * Changed: Require CMake >=3.5.0 (GitHub #172)
206 * Added: CMake option URIPARSER_SHARED_LIBS=(ON|OFF) to control,
207 whether to produce a shared or static library for uriparser
208 and that alone, falls back to standard BUILD_SHARED_LIBS
209 if available, else defaults to "ON" (GitHub #169, GitHub #170)
210 * Improved: Document that scheme-based normalization a la
211 section 6.2.3 of RFC 3986 is a responsibility of the application
212 using uriparser (GitHub #173, GitHub #174)
213 * Improved: Document supported code points for functions uriEscape(Ex)W
214 (GitHub #171, GitHub #175)
215 * Infrastructure: Update Clang from 15 to 18 (GitHub #161, GitHub #187)
216 * Infrastructure: Adapt to breaking changes in Clang packaging (GitHub #160)
217 * Infrastructure: Get sanitizer CFLAGS and LDFLAGS back in sync (GitHub #161)
218 * Infrastructure: Pin GitHub Actions to specific commits for security
219 (GitHub #165)
220 * Soname: 1:31:0 — see https://verbump.de/ for what these numbers do
221 (liburiparser.so.1.0.31)
222
223 2022-10-05 -- 0.9.7
224
225 * Fixed: Multiple issues with IPv6 and IPvFuture literal parsing
226 (GitHub #146, GitHub #150)
227 Thanks to Scallop Ye for the report and the pull request!
228 * Fixed: Fix symbol visibility for -DBUILD_SHARED_LIBS=OFF (GitHub #139,
229 GitHub #141); thanks to Mariusz Zaborski for the report!
230 * Fixed: For MinGW, use size_t for inet_ntop declaration and fix macro
231 checks for both MinGW and mingw-w64 (GitHub #131)
232 * Fixed: Compiler warnings (GitHub #132, GitHub #152)
233 * Improved: Use name UriConfig.h rather than generic config.h for the
234 config header file to avoid name clashes and also include it through
235 "UriConfig.h" with quotes rather than <UriConfig.h> so that it is found
236 in quote path locations (GitHub #149)
237 Thanks to Gaspard Petit for bringing this up!
238 * Improved: Document need for UriConfig.h in UriMemory.c (GitHub #136)
239 * Infrastructure: Add (support for) Visual Studio 17/2022 (GitHub #152)
240 * Infrastructure: Drop (support for) Visual Studio <=14/2015 (GitHub #152)
241 * Infrastructure: Update Clang from 13 to 15 (GitHub #143, GitHub #151)
242 * Infrastructure: Make MinGW with 32bit Wine on Ubuntu 20.04 possible
243 (GitHub #142, GitHub #144, GitHub #145)
244 * Soname: 1:30:0 — see https://verbump.de/ for what these numbers do
245
246 2022-01-06 -- 0.9.6
247
248 >>>>>>>>>>>>> SECURITY >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
249 * Fixed: [CVE-2021-46141]
250 Fix a bug affecting both uriNormalizeSyntax* and uriMakeOwner*
251 functions where the text range in .hostText would not be duped using
252 malloc but remain unchanged (and hence "not owned") for URIs with
253 an IPv4 or IPv6 address hostname; depending on how an application
254 uses uriparser, this could lead the application into a use-after-free
255 situation.
256 As the second half, fix uriFreeUriMembers* functions that would not
257 free .hostText memory for URIs with an IPv4 or IPv6 address host;
258 also, calling uriFreeUriMembers* multiple times on a URI of this
259 very nature would result in trying to free pointers to stack
260 (rather than heap) memory (GitHub #121, GitHub #124)
261 Commit 987b046e41f407d17c622e580fc82a5e834b4329
262 Commit b1a34743bc1472e055d886e29e9b53f670eb3282
263 * Fixed: [CVE-2021-46142]
264 Fix functions uriNormalizeSyntax* for out-of-memory situations
265 (i.e. malloc returning NULL) for URIs containing empty segments
266 (any of user info, host text, query, or fragment) where previously
267 pointers to stack (rather than heap) memory were freed (GitHub #122,
268 GitHub #124)
269 Commit c0483990e6b5b454f7c8752b36760cfcb0d093f5
270 >>>>>>>>>>>>> SECURITY >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
271 * Fixed: CMake: Call "enable_language(CXX)" prior to tinkering with
272 CMAKE_CXX_* variables (GitHub #110)
273 Thanks to Alexander Richardson for the patch (originally at libexpat)
274 * Fixed: CMake: Support absolute paths for both CMAKE_INSTALL_LIBDIR
275 and CMAKE_INSTALL_INCLUDEDIR (GitHub #114)
276 Thanks to Rafael Fontenelle for bringing this up (originally at libexpat)
277 * Fixed: Windows: Address MSVC compiler warnings (GitHub #111, GitHub #113)
278 * Fixed: Documentation: Space requirements for uriUriStringToUnixFilename
279 did not take into account short form "file:/bin/bash" of RFC 8089 of 2017
280 (with prefix "file:/" rather than "file:///") that uriparser supports
281 since release 0.8.6 in 2018 (GitHub #118, GitHub #119)
282 * Fixed: Compile error with MinGW GCC 9 related to a mismatched prototype
283 for function inet_ntop (GitHub #117, GitHub #120)
284 Thanks to Sandro Mani for the report!
285 * Fixed: Compile warnings in test suite code (GitHub #120)
286 * Improved: Respect variable ${CPP} in doc/preprocess.sh (GitHub #115)
287 * Added: Test suite invocation for MinGW using Wine (GitHub #120)
288 * Soname: 1:29:0 — see https://verbump.de/ for what these numbers do
289
290 2021-03-18 -- 0.9.5
291
292 * Fixed: Fix a bug regarding section "5.2.4. Remove Dot Segments"
293 of RFC 3986 that affected both normalization and reference resolution
294 with regard to trailing slashes (GitHub #92, #97)
295 Thanks to Dan Pape for the report!
296 * Fixed: MinGW: Fix name of static library (GitHub #90)
297 Thanks to SpaceIm for the patch and Sandro Mani for review!
298 * Fixed: Use correct inline marker "__forceinline" for Intel C++ Compiler
299 (GitHub #93)
300 Thanks to jensenrichardson for the patch!
301 * Fixed: Link against pthreads for (default) -DURIPARSER_BUILD_TESTS=ON
302 (GitHub #99, #100)
303 * Fixed: When integrated using CMake function add_subdirectory, installation
304 could fail due to lack of prefix ${CMAKE_CURRENT_SOURCE_DIR} (GitHub #98)
305 Thanks for the patch to Shehzan Mohammed!
306 * Fixed: Addressed MSVC compile warning about lack of /EHsc when compiling
307 the C++ test suite code (GitHub #102)
308 * Fixed: Stopped misadvertising wide characters as Unicode support
309 (GitHub #104)
310 * Added: CMake option URIPARSER_WARNINGS_AS_ERRORS=(ON|OFF)
311 to turn compile warnings into errors, defaults to "OFF" (GitHub #102)
312 * Improved: pkg-config: Use ${prefix} and ${exec_prefix} to ease
313 overriding variables using --define-variable=NAME=VALUE,
314 e.g. as done on OpenWRT (GitHub #91)
315 Thanks to Karel Kočí for the pull request!
316 * Improved: Auto-detection of the qhelpgenerator command based on CMake
317 package "Qt5Help" when available. CMake option "QHG_LOCATION" can still
318 be used to enforce a specific location (GitHub #103)
319 Thanks for his help to Andreas Sturmlechner!
320 * Improved: Make documentation use pkg-config in example on how to
321 check for uriparser from within configure.ac (GNU Autoconf)
322 (GitHub #37, #106)
323 * Improved: In testing code, add a missing 'extern "C"' (GitHub #109)
324 Thanks to Jørgen Ibsen for the patch!
325 * Soname: 1:28:0 — see https://verbump.de/ for what these numbers do
326
327 2020-05-31 -- 0.9.4
328
329 * Fixed: testrunner: No longer crashes when compiled with NDEBUG (GitHub #67)
330 * Fixed: CMake: Support GTest 1.8.0 (GitHub #68)
331 Thanks to Ryan Schmidt for the related report!
332 * Fixed: CMake: Use variable GTEST_INCLUDE_DIRS (with plural "S") rather than
333 GTEST_INCLUDE_DIR (GitHub #79, #81)
334 Thanks to Wouter Beek for the related report!
335 * Improved: CMake: Send config summary to stdout, not stderr (GitHub #72)
336 Thanks to Scott Donelan for the patch!
337 * Improved: Make -DURIPARSER_BUILD_TESTS=OFF unlock compilation without
338 a C++ compiler; thanks to Fabrice Fontaine for the patch! (GitHub #69)
339 * Added: Functions to make UriUri[AW] instances independent of the original
340 URI string (GitHub #77 and #78)
341 New functions:
342 uriMakeOwner[AW]
343 uriMakeOwnerMm[AW]
344 * Added: CMake option URIPARSER_ENABLE_INSTALL to toggle installation of
345 files, defaults to "ON" (GitHub #74, #75)
346 Thanks to Scott Donelan for the patch!
347 * Soname: 1:27:0
348
349 2019-04-28 -- 0.9.3
350
351 * Fixed: pkg-config: Fix version line in liburiparser.pc (GitHub #65)
352 * Changed: MinGW: Add library version suffix to DLL name
353 Thanks to Sandro Mani for the patch! (GitHub #63, #64)
354 * Soname: 1:26:0
355
356 2019-04-22 -- 0.9.2
357
358 * Fixed: Add missing extern "C" wrapper to UriIp4.h for use from C++
359 * Fixed: Linking error for symbol defaultMemoryManager from mixing C and C++
360 Thanks to Jørgen Ibsen for the report! (GitHub #52)
361 * Fixed: Link errors on Haiku regarding function inet_ntop (GitHub #45)
362 Thanks to Schrijvers Luc for the patch!
363 * Fixed: Mark API functions with __declspec(dllexport) and
364 __declspec(dllimport) in *.h files for Visual Studio (GitHub #60)
365 * Improved: Use -fvisibility=hidden by default with supporting compilers,
366 e.g. GCC and Clang (GitHub #60)
367 * Changed: Migrated from GNU Autotools to CMake (GitHub #17, #47, #56, #59)
368 Thanks for their support with the CMake migration to:
369 - David Demelier
370 - Jørgen Ibsen
371 - KangLin
372 - Kouhei Sutou
373 - myd7349
374 - Richard Hodges
375 - Zachary Lund
376 * Removed: All Windows-related build systems other than CMake
377 * Soname: 1:25:0
378
379 2019-01-02 -- 0.9.1
380
381 >>>>>>>>>>>>> SECURITY >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
382 * Fixed: [CVE-2018-20721]
383 Out-of-bounds read in uriParse*Ex* for incomplete URIs with IPv6
384 addresses with embedded IPv4 address, e.g. "//[::44.1";
385 mitigated if passed parameter <afterLast> points to readable memory
386 containing a '\0' byte.
387 Commit cef25028de5ff872c2e1f0a6c562eb3ea9ecbce4
388 Thanks to Joergen Ibsen for the report!
389 >>>>>>>>>>>>> SECURITY >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
390 * Fixed: When parsing a malformed URI with an IPvFuture address
391 (e.g. "http://[vA.123456" missing "]"), errorPos would point to the first
392 character after "v" than the actual position of the error (here: the end
393 of the string)
394 * Fixed: uriToStringCharsRequired* reported 1 more byte than actually needed
395 for IPv4 address URIs (GitHub #41); Thanks to @gyh007 for the patch!
396 * Fixed: Compilation with MinGW
397 Thanks to Sandro Mani for the patch!
398 * Fixed: Drop use of asprintf from the test suite for MinGW (GitHub #40)
399 * Improved: For parse errors, waterproof errorPos <= afterLast
400 * Soname: 1:24:0
401
402 2018-10-27 -- 0.9.0
403
404 >>>>>>>>>>>>> SECURITY >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
405 * Fixed: [CVE-2018-19198]
406 Out-of-bounds write in uriComposeQuery* and uriComposeQueryEx*
407 Commit 864f5d4c127def386dd5cc926ad96934b297f04e
408 Thanks to Google Autofuzz team for the report!
409 * Fixed: [CVE-2018-19199]
410 Detect integer overflow in uriComposeQuery* and uriComposeQueryEx*
411 Commit f76275d4a91b28d687250525d3a0c5509bbd666f
412 Thanks to Google Autofuzz team for the report!
413 * Fixed: [CVE-2018-19200]
414 Protect uriResetUri* against acting on NULL input
415 Commit f58c25069cf4a986fe17a80c5b38687e31feb539
416 >>>>>>>>>>>>> SECURITY >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
417 * Fixed: Be fully compliant to C89 (GitHub #28) and C++98 in test code
418 * Fixed: Fix off-by-one in uriComposeQueryCharsRequired* and ...Ex*
419 Reported space requirements were 1 byte bigger than necessary
420 * Changed: Marked as deprecated:
421 Deprecated functions:
422 uriNormalizeSyntaxMaskRequired[AW]
423 uriParseUri[AW]
424 uriParseUriEx[AW]
425 * Added: Add convenience functions to ease user code to parse a single URI
426 New functions:
427 uriParseSingleUri[AW]
428 uriParseSingleUriEx[AW]
429 uriParseSingleUriExMm[AW]
430 * Added: Support for custom memory managers (GitHub #26, #35), see Doxygen
431 New functions (as extension of existing ones):
432 uriAddBaseUriExMm[AW]
433 uriComposeQueryMallocExMm[AW]
434 uriDissectQueryMallocExMm[AW]
435 uriFreeQueryListMm[AW]
436 uriFreeUriMembersMm[AW]
437 uriNormalizeSyntaxExMm[AW]
438 uriParseSingleUriExMm[AW]
439 uriRemoveBaseUriMm[AW]
440 New functions (for convenience):
441 uriCompleteMemoryManager
442 uriEmulateCalloc
443 uriEmulateReallocarray
444 uriTestMemoryManager
445 New error codes:
446 URI_ERROR_MEMORY_MANAGER_FAULTY
447 URI_ERROR_MEMORY_MANAGER_INCOMPLETE
448 New types:
449 UriFuncCalloc
450 UriFuncFree
451 UriFuncMalloc
452 UriFuncRealloc
453 UriFuncReallocarray
454 UriMemoryManager
455 * Added: Add non-void versions of uriNormalizeSyntaxMaskRequired*
456 New functions:
457 uriNormalizeSyntaxMaskRequiredEx[AW]
458 * Changed: Migrate test suite from CppTest to GoogleTest 1.8.1
459 * Improved: Make test suite free of memory leaks (GitHub #31)
460 Thanks to AddressSanitizer!
461 * Removed: Support for pointless define URI_SIZEDOWN (GitHub #29)
462 Related configure option --enable-sizedown has also been removed.
463 * Soname: 1:23:0
464
465 2018-08-18 -- 0.8.6
466
467 * Fixed: Bad/NULL .hostText.afterLast when parsing certain rather pathologic
468 but well-formed URIs with empty host (e.g. "//:%aa@") (GitHub #15)
469 Thanks to Kurt Schwehr for the report!
470 * Fixed: Fix uriRemoveBaseUri for case where scheme, host name,
471 IPvFuture address or path segments of the source address were
472 string prefixes of the related counterpart in the base URI.
473 Thanks to Yang Yu for the patch! (GitHub #19, #20)
474 * Fixed: Make UriStringToUnixFilename and UriStringToWindowsFilename
475 support minimal representation a la RFC 8089, e.g. file:/bin/bash
476 (compare to file:///bin/bash with three slashes) (GitHub #12, #14)
477 Thanks to Zane van Iperen for the report!
478 * Fixed: Documentation typos (GitHub #10, #11)
479 Thanks to Graham Percival!
480 * Improved: Made API docs of uriRemoveBaseUri more clear
481 (related to GitHub #19)
482 * Soname: 1:22:0
483
484 2018-02-07 -- 0.8.5
485
486 * Changed: The uriparser project has moved from SourceForge to GitHub:
487 Code + issue tracker: https://github.com/uriparser/uriparser
488 New website: https://uriparser.github.io/
489 Please update any links of yours, accordingly. Thank you!
490 * Fixed: Memleak in out-of-memory clean-up code
491 of URI normalization, related to SF.net bug #28.
492 Thanks to Chris Hills for the report!
493 * Fixed: Fix compilation of uriparse(1) on FreeBSD
494 Thanks to Ed Schouten for the patch!
495 * Fixed: Fix C90 compilation errors
496 Thanks to Joel Cunningham for the patches!
497 * Fixed: Space requirements documented for uriWindowsFilenameToUriStringA
498 given URI "file://server1/file1.txt" (SF.net bug #31)
499 Thanks to threedyd for the report!
500 * Fixed: Compiler warnings
501 Thanks to Joel Cunningham for the patches!
502 * Fixed: Stop exporting internal function RemoveBaseUriImpl
503 Thanks to Joel Cunningham for the report!
504 * Fixed: API documentation front page no longer empty with Doxygen 1.8.13
505 * Fixed: "make -C doc install" fixed for lack of .map files
506 * Improved: Communicate that absolutePath is always URI_FALSE for URIs
507 with a host in uriparse CLI tool output and Uri.h header
508 (GitHub #2, SF.net #30)
509 * Soname: 1:21:0
510
511 2015-10-12 -- 0.8.4
512
513 * Fixed: Stack overflow on parsing malformed IPv6 addresses with
514 more than eigtht quads. Thanks to Alexander Klink for the report!
515 * Soname: 1:20:0
516
517 2015-10-04 -- 0.8.3
518
519 * Fixed: uriCompareRange reported NULL pointer and range of
520 length zero as equal, by mistake.
521 Thanks to Robert Kausch and his Coverity report.
522 * Fixed: Use-after-free in out-of-memory code of uriMakeOwner.
523 Thanks to Chris Hills and his Klocwork-based report (SF.net bug #28)
524 * Soname: 1:19:0
525
526 2015-04-27 -- 0.8.2
527
528 * Fixed: Broken conversion from/to Windows network shares (SF.net bug #21)
529 Thanks to Adam Gross and Dmitry Repkin!
530 * Fixed: Limit uriCompareRange return values to -1/0/1 (SF.net bug #24)
531 As a side effect, this fixes the test suite for AArch64.
532 Thanks to Marcin Juszkiewicz for the patch!
533 * Fixed: MinGW Makefile:
534 LIB_DIR fixed from ../../lib leftover to ../../src (SF.net bug #27)
535 Thanks to Dmytro Zagashev for the report!
536 * Fixed: Add missing NULL checks to UriStringToFilename (SF.net bug #25)
537 Thanks to Jerome Custodio for the report!
538 * Changed: Leave inlining decisions to GCC
539 * Soname: 1:18:0
540
541 2014-10-20 -- 0.8.1
542
543 * Fixed: Sync URI_VER_* preprocessor defines (were at 0.7.6, SF.net bug #23)
544 * Fixed: Bug in internal function that may flip uriEqualsUri results around
545 * Added: Function uriAddBaseUriEx allowing to resolve URIs with
546 a scheme identical to that of the base URI to resolve against
547 as if the URI to resolve had no scheme specified, when flag
548 URI_RESOLVE_IDENTICAL_SCHEME_COMPAT is specified
549 (SF.net feature request #4)
550 * Soname: 1:17:0
551
552 2014-07-12 -- 0.8.0.1
553
554 * Fixed: ISO C90 warnings (SF.net bug #20)
555 * Changed: No longer ship RFC documents (to make things easier for Debian)
556 * Soname: 1:16:0
557
558 2013-12-20 -- 0.8.0
559
560 * Fixed: Resolution of relative URI "/" broken
561 Thanks to Mo McRoberts for the patch!
562 * Fixed: uriAddBaseUri produced uriUri objects with both host
563 and the absolutePath flag set (while the absolutePath flag
564 should only be true for URI objects without a host) when
565 resolving absolute URIs like "/" or "/foo/bar".
566 Now the absolutePath flag is set to URI_FALSE and an empty
567 segment is added as necessary
568 * Fixed: .errorCode could end up unset, previously
569 Thanks to Radu Hociung for the patch! (SF.net bug #16)
570 * Fixed: Resolve use of non-POSIX "sed -r" used when building
571 documentation (SF.net bug #18)
572 Thanks to Ryan Schmidt for reporting!
573 * Fixed: Build DLL with -no-undefined on Windows
574 Thanks to Michel Zou for the patch! (SF.net bug #19)
575 * Added: Command line tool "uriparse"
576 Thanks to Radu Hociung for coding! (SF.net feature request #3)
577 * Soname: 1:15:0
578
579 2013-08-24 -- 0.7.9
580
581 * Fixed: Error position ended up as NULL for some syntax errors.
582 Thanks to Daniel Solano Gómez for the patch! (SF.net bug #14)
583 * Soname: 1:14:0
584
585 2013-05-13 -- 0.7.8
586
587 * Fixed: Fix dissection of query string "q=hello&x=&y=" (SF.net bug #12)
588 Thanks to Marc Novakowski for reporting!
589 * Soname: 1:13:0
590
591 2012-04-05 -- 0.7.7
592
593 * Fixed: Fix rejection of some valid characters for userinfo
594 section, e.g. "http://%2Fuser:%2F21@host/" (SF.net bug #11)
595 * Fixed: Fix rejection of valid double colon in userinfo
596 section, e.g. "http://::@host/"
597 * Soname: 1:12:0
598
599 2012-01-20 -- 0.7.6
600
601 * Fixed: Qt Compressed Help file was not installed
602 * Fixed: Shadow/VPATH build doc generation
603 * Fixed: Compile error from Doxygen when configuring with
604 neither --enable-doc nor --disable-doc
605 * Fixed: Code documentation errors
606 Thanks to Valentin Haenel for the patch!
607 * Fixed: Fix include path in pkg-config, i.e. remove
608 "/uriparser" suffix as uriparser's headers are meant to
609 be included by statements like #include <uriparser/....> .
610 Thanks to Philip de Nier for reporting!
611 * Fixed: Compilation in context of Eclipse + Cygwin + wchar_t
612 (SF.net bug #10)
613 Thanks to Gary Mazzaferro for reporting!
614 * Fixed: Selection of supported character widths at build
615 time: <char *> or <wchar_t *> or both
616 * Added: configure parameters to disable either character
617 widths: --disable-char, --disable-wchar_t
618 * Soname: 1:11:0
619
620 2009-03-04 -- 0.7.5
621
622 * Added: pkg-config file
623 * Fixed: File Doxyfile.in was missing from release archives
624 Thanks to Rakesh Pandit for reporting!
625 * Fixed: Doc generation troubles
626 * Changed: No longer shipping bundled libcpptest
627 * Changed: New dependencies:
628 - libcpptest 1.1.0 or later
629 - pkg-config
630 The libcpptest dependency can be disabled through
631 configuring with --disable-test, which excludes the
632 test suite from compilation.
633 * Soname: 1:10:0
634
635 2008-12-23 -- 0.7.4
636
637 * Fixed: Null pointer de-referencing when dissecting query
638 strings starting with "&" right after "?" (SF.net bug #7).
639 Thanks to Harvey Vrsalovic for reporting!
640 * Fixed: Memory leak in uriFreeQueryList function (SF.net bug #6)
641 Thanks to Daniel Chapiesky for reporting!
642 * Fixed: Memory leak in uriNormalizeSyntax(Ex) functions (SF.net bug #6)
643 Thanks to Daniel Chapiesky for reporting!
644 * Improved: Nested configure hacks resolved
645 * Soname: 1:9:0
646
647 2008-11-08 -- 0.7.3
648
649 * Fixed: Missing NULL check in parsing routines
650 Thanks to Sezai Tekin for reporting!
651 * Fixed: uriparser now builds on Cygwin
652 * Fixed: Now shipping gnulib's config.guess from HEAD
653 which is suitable for Haiku (SF.net bug #5)
654 * Changed: swprintf requirement resolved
655 * Changed: Build system changes:
656 - configure option --enable-doc added
657 - configure.in renamed to configure.ac
658 - some Autotools files moved to build-aux directory
659 * Added: Qt Assistant documentation output:
660 - Qt Compressed Help (.qch) at <doc/uriparser-doc-*.qch>
661 - Qt Help Project (.qhp) at <doc/html/index.qhp>
662 Generation requires Doxygen 1.5.7.1-20081103 or later.
663 * Soname: 1:8:0
664
665 2008-09-01 -- 0.7.2
666
667 * Fixed: Bad cleanup logic in functions
668 - uriAddBaseUri(..)
669 - uriRemoveBaseUri(..)
670 Previously you needed to call uriFreeUriMembers on return code
671 URI_ERROR_MALLOC and only then. So that's why these functions now
672 take cleanup off your shoulders. An extra call to uriFreeUriMembers
673 from your side is still needed in case of success.
674 * Soname: 1:7:0
675
676 2008-04-27 -- 0.7.1
677
678 * Fixed: Bogus syntax error when parsing URIs with port-like
679 passwords, e.g. "http://user:21@host/" (SF.net bug #1)
680 Thanks to Friedrich Delgado Friedrichs for reporting!
681 * Fixed: Parser did not handle trailing slashes correctly in some cases,
682 which also made the structures produced from parsing "http://e.com/"
683 and "http://e.com" indistinguishable. (SF.net bug #2)
684 Thanks to Edward Z. Yang for reporting!
685
686 2008-04-04 -- 0.7.0
687
688 * Added: Dissection and composition of query strings
689 * Added: Documentation improvements
690 (in|out|inout indicators, addition of \since and \see)
691 * Changed: Code::Blocks project files updated from file format
692 version 1.4 to 1.6, which is produced by Code::Blocks 8.02
693 * Added: Code::Blocks workspace file
694 * Soname: 1:5:0
695
696 2008-02-25 -- 0.6.4
697
698 * Added: Syntax-based normalization can now handle relative URIs,
699 e.g. "../../a/b/.././c" is normalized to "../../a/c"
700 * Fixed: Normalization code could free foreign memory
701 * Fixed: Normalization processed the path segment even when asked not to
702 * Added: MinGW Makefile and related readme
703 Thanks to Michael Anthony Puls II!
704 * Fixed: Documentation bug not requiring enough memory for the output
705 buffer when converting a relative file URI back to a filename
706 * Soname: 1:4:0
707
708 2008-02-11 -- 0.6.3
709
710 * Fixed: Two major crash bugs in normalization code
711 Thanks to Adrian Manrique for the patch!
712 * Added: Brief usage tutorial
713 * Soname: 1:3:0
714
715 2008-02-08 -- 0.6.2
716
717 * Fixed: Freeing a normalized URI like "http://test?"
718 caused a crash. Thanks to Adrian Manrique for reporting!
719 * Fixed: Filename <--> URI string conversion helpers can
720 now handle relative URIs and filenames
721 * Soname: 1:2:0
722
723 2007-12-23 -- 0.6.1
724
725 * Fixed: Percent-encodings in hostnames were not repaired during normalization.
726 Thanks to Adrian Manrique for reporting!
727 * Fixed: Percent-encodings were fixed after dot removal not before during
728 normalization.
729 Thanks to Adrian Manrique for reporting!
730 * Fixed: Include path order bug
731 Thanks to Ed Schouten for reporting this!
732 * Fixed: Shadow builds now possible
733 Thanks to Adeodato Simó for the patch!
734 * Added: Version guards for Autoconf/Automake
735 Thanks to Martin Michlmayr for reporting!
736 * Soname: 1:1:0
737
738 2007-09-17 -- 0.6.0
739
740 * Fixed: Proper soname updates from now on, starting at 1:0:0
741 * Removed: Visual Studio 2003 project files
742
743 2007-09-13 -- 0.5.2
744
745 * Added: RemoveBaseUri function to create URI references
746 * Added: Unix/Windows filename <--> URI string conversion helpers
747 * Added: EscapeEx function to escape text blocks without zero termination
748 * Fixed: Bug in ToString for URIs with scheme, path, but no host (e.g. "f:/.//g")
749 * Fixed: AddBase now resolves ".//g" with base "f:/a" to "f:/.//g" instead of
750 "f://g" which would result in "g" becoming the authority part when parsing
751 a recomposition (ToString) of that URI structure. This is a whole in RFC 3986,
752 see http://lists.w3.org/Archives/Public/uri/2007Aug/0003.html for details.
753
754 2007-08-09 -- 0.5.1
755
756 * Fixed: Empty host bug (URIs like "///g")
757 * Fixed: Relative URIs are no longer touched by normalization
758 * Fixed: MergePath failed for empty paths
759 * Fixed: Bug with "." segments in AddBase
760 All of the above revealed by test cases from 4Suite (http://4suite.org/)
761
762 2007-07-28 -- 0.5.0
763
764 * Added: Syntax-based normalization
765 * Added: Percent-encoding function Escape
766 * Improved: Malloc/NULL checks added
767 * Added: New function UnescapeInPlaceEx can also decode '+' to ' '
768 and convert line breaks
769 * Added: Exact space computation for ToString, see ToStringCharsRequired
770 * Added: --enable-sizedown for saving space and slower code
771 * Fixed: Two internal functions were exposed in the API by mistake:
772 uriPushToStack and uriStackToOctet
773 * Added: Visual Studio 2005 project files
774 * Removed: Legacy code (removal was announced for 0.5.0)
775
776 2007-07-06 -- 0.4.1
777
778 * Fixed: ToString did not work for IPv4 and IPv6 hosts
779
780 2007-07-03 -- 0.4.0
781
782 * Added: References resolution (think relative to absolute)
783 * Added: Naive URI equality check
784 * Added: URIs can now be converted back to strings
785 * Fixed: The first path segment of a relative URI was eaten
786 (functions ParseSegmentNz and ParseMustBeSegmentNzNc)
787 * Fixed: uri->scheme.first was not reset in some cases
788 (function ParseMustBeSegmentNzNc)
789 * Improved: Test suite now built on "make check", not before
790 * Fixed: Test suite always returned 0 (success)
791
792 2007-04-23 -- 0.3.4
793
794 * Added: Shared library support (moved to libtool)
795
796 2007-04-03 -- 0.3.3
797
798 * Fixed: Now unix EOLs constantly
799 * Fixed: Added forgotten files to release package
800
801 2007-03-31 -- 0.3.2
802
803 * Fixed: Now compiles on FreeBSD
804
805 2007-03-28 -- 0.3.1
806
807 * Fixed: Now compiles on Mac OS X
808
809 2007-03-26 -- 0.3.0
810
811 * Added: New API, old marked deprecated
812 * Added: Added support for wide strings (think wchar_t)
813 * Added: Doxygen code documentation
814 * Added: Test suite using CppTest
815 * Changed: Library code is now licensed under the new BSD license.
816 The test suite code is licensed under LGPL.
817
818 2006-12-08 -- 0.2.1