summaryrefslogtreecommitdiff
path: root/libproxy/url.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Remove all existing codeJan-Michael Brummer2023-03-271-558/+0
|
* Add host port to request headerJan-Michael Brummer2021-10-191-1/+1
| | | | | | | The request header in get_pac() currently misses the host port and thus breaks every proxy running on another port. See https://gitlab.gnome.org/GNOME/glib-networking/-/issues/138 for example. Add this missing port in case it is not http default port 80.
* Include cerrnoGeorgi D. Sotirov2020-12-061-0/+1
| | | | Include cerrno header for errno and EINTR.
* Merge pull request #126 from lifeibiren/fix-overflow-with-large-pacDominique Leuenberger2020-11-101-13/+31
|\ | | | | Fix buffer overflow when PAC is enabled
| * Fix buffer overflow when PAC is enabledFei Li2020-07-171-13/+31
| | | | | | | | | | | | The bug was found on Windows 10 (MINGW64) when PAC is enabled. It turned out to be the large PAC file (more than 102400 bytes) returned by a local proxy program with no content-length present.
* | Merge pull request #131 from TechSmith/vs2019buildableDominique Leuenberger2020-09-101-6/+3
|\ \ | | | | | | Enable building in Visual Studio 2019 without mingw.
| * | Trivial CleanupRoss Porter2020-09-031-6/+3
| |/ | | | | | | While working on c37a4f92, I noticed that there were multiple `#ifdef WIN32` statements that seemed to include duplicated defines. Did the cleanup work to combine these into a single `#ifdef`
* | Merge pull request #129 from mcatanzaro/mcatanzaro/#127Dominique Leuenberger2020-09-101-2/+2
|\ \ | | | | | | Remove dynamic exception specifications
| * | Remove dynamic exception specificationsMichael Catanzaro2020-08-121-2/+2
| |/ | | | | | | | | | | | | | | | | C++98 called and it wants its dynamic exception specifications back! We'd better comply. https://en.cppreference.com/w/cpp/language/except_spec Fixes #127
* | Rewrite url::recvline to be nonrecursiveMichael Catanzaro2020-09-091-10/+18
|/ | | | | | | | | | | | This function processes network input. It's semi-trusted, because the PAC ought to be trusted. But we still shouldn't allow it to control how far we recurse. A malicious PAC can cause us to overflow the stack by sending a sufficiently-long line without any '\n' character. Also, this function failed to properly handle EINTR, so let's fix that too, for good measure. Fixes #134
* Merge pull request #101 from albert-astals-cid-kdab/small_perf_improvDominique Leuenberger2020-04-161-2/+2
|\ | | | | Small performance improvements
| * Small performance improvementsAlbert Astals Cid2019-10-041-2/+2
| | | | | | | | | | * pass strings by const & instead of copy * Search single chars as chars and not as strings
* | unistd.h is not present in Windows and makes build failAlberto Garcia Illera2019-11-131-1/+1
|/
* Use closesocket() instead of close() on WindowsJérôme Laheurte2017-05-231-3/+5
|
* Use the query string (parameters) when requesting PAC filesPaul van Tilburg2016-09-191-4/+18
|
* Handle PAC files without specified HTTP content lengthPaul van Tilburg2016-09-191-3/+8
|
* Fix leaks. Fixes issue 185.dominique.leuenberger@gmail.com2012-12-101-0/+2
|
* Fix mixed used of tabs and space for indentationnicolas.dufresne@gmail.com2012-10-151-6/+6
|
* Fix http chunk encoded PACnicolas.dufresne@gmail.com2012-10-151-5/+4
| | | | This has been broken in previous patch that tried fix an infinit loop that occured uppon truncated content.
* Fix usage of delete instead of delete[]nicolas.dufresne@gmail.com2012-10-101-1/+1
|
* Fix potential infinit loop uppon network errornicolas.dufresne@gmail.com2012-10-101-2/+5
|
* Fix buffer overflow downloading large pac filenicolas.dufresne@gmail.com2012-10-101-1/+2
| | | This fixes CVE CVE-2012-4504
* Don't confuse ":" in path with a port dividernicolas.dufresne@gmail.com2012-07-051-0/+2
|
* Fix build with gcc 4.7. Fixes issue 173dominique.leuenberger@gmail.com2012-03-091-0/+1
|
* Issue 170: need also check "Transfer-Encoding: chunked" for chunk for http pacdominique.leuenberger@gmail.com2012-02-051-1/+1
|
* Remove unused mime type checknicolas.dufresne2011-06-061-8/+2
|
* Fix issue 159: a pac http://address.pac.com is valid and should be treated ↵dominique.leuenberger@gmail.com2011-04-081-1/+1
| | | | as http://address.pac.com/
* fix invalid size read in fstat()npmccallum2011-02-061-7/+5
|
* fix mismatched delete[]npmccallum2011-02-061-1/+1
|
* Get url from file: Initialize the buffer to 0, to not have garbage. dominique.leuenberger@gmail.com2011-02-061-0/+1
|
* Avoid using static constructor in shared librarynicolas.dufresne2011-01-031-7/+0
|
* Avoid sending negative values to isalnum()nicolas.dufresne2010-10-061-1/+1
| | | | On Windows, sending negative value to isalnum() result in an assertion popping. Adding cast, to prevent negative value from being sent.
* Don't read NULL character in url::encodenicolas.dufresne2010-10-061-1/+1
|
* Avoid to read the NULL character in stringsnicolas.dufresne2010-10-061-3/+4
| | | | The URL parser whas assuming that we can read the NULL character in a string. This does not work on Windows platform, and is not standard.
* two more win32 fixesnpmccallum2010-09-261-1/+1
|
* Avoid reading one too far inside a std::stringnicolas.dufresne2010-09-011-1/+2
|
* Fixed crash in URL parsenicolas.dufresne2010-08-201-3/+3
|
* Make sure authority_end is not nposnicolas.dufresne2010-07-221-0/+2
|
* Implemented url::encode() and unit testnicolas.dufresne2010-06-021-0/+22
|
* Rewrite url parser classnicolas.dufresne2010-06-011-145/+206
| | | | | This version has a better parsing design and is closer to RFC2396. It solved trailing slash bugs found in previous version and support IPv6 addresses. This work is base on URI parse found in GLib GIO.
* Fix URL reassembly so we keep @ and : is presentnicolas.dufresne2010-05-171-2/+9
|
* Added {} at the end of loops that does nothingnicolas.dufresne2010-03-291-1/+1
| | | This removes warnings emited by GCC.
* fix build errors for openSuSEnpmccallum2010-03-061-11/+11
|
* fix file:// urls for pacsnpmccallum2010-03-061-1/+1
|
* correct some delete references; fixes issue 91; patch from Erik van Pienbroeknpmccallum2010-03-051-8/+8
|
* fix all symbols with a leading '_'npmccallum2010-02-241-16/+16
|
* make pac fetching work on win32npmccallum2010-02-221-2/+4
|
* fixed a url crashernpmccallum2010-02-221-7/+7
|
* fix a crashernpmccallum2010-02-221-0/+7
|
* remove googlecode from the namespacenpmccallum2010-02-051-12/+5
|