Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Remove all existing code | Jan-Michael Brummer | 2023-03-27 | 1 | -558/+0 |
| | |||||
* | Add host port to request header | Jan-Michael Brummer | 2021-10-19 | 1 | -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 cerrno | Georgi D. Sotirov | 2020-12-06 | 1 | -0/+1 |
| | | | | Include cerrno header for errno and EINTR. | ||||
* | Merge pull request #126 from lifeibiren/fix-overflow-with-large-pac | Dominique Leuenberger | 2020-11-10 | 1 | -13/+31 |
|\ | | | | | Fix buffer overflow when PAC is enabled | ||||
| * | Fix buffer overflow when PAC is enabled | Fei Li | 2020-07-17 | 1 | -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/vs2019buildable | Dominique Leuenberger | 2020-09-10 | 1 | -6/+3 |
|\ \ | | | | | | | Enable building in Visual Studio 2019 without mingw. | ||||
| * | | Trivial Cleanup | Ross Porter | 2020-09-03 | 1 | -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/#127 | Dominique Leuenberger | 2020-09-10 | 1 | -2/+2 |
|\ \ | | | | | | | Remove dynamic exception specifications | ||||
| * | | Remove dynamic exception specifications | Michael Catanzaro | 2020-08-12 | 1 | -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 nonrecursive | Michael Catanzaro | 2020-09-09 | 1 | -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_improv | Dominique Leuenberger | 2020-04-16 | 1 | -2/+2 |
|\ | | | | | Small performance improvements | ||||
| * | Small performance improvements | Albert Astals Cid | 2019-10-04 | 1 | -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 fail | Alberto Garcia Illera | 2019-11-13 | 1 | -1/+1 |
|/ | |||||
* | Use closesocket() instead of close() on Windows | Jérôme Laheurte | 2017-05-23 | 1 | -3/+5 |
| | |||||
* | Use the query string (parameters) when requesting PAC files | Paul van Tilburg | 2016-09-19 | 1 | -4/+18 |
| | |||||
* | Handle PAC files without specified HTTP content length | Paul van Tilburg | 2016-09-19 | 1 | -3/+8 |
| | |||||
* | Fix leaks. Fixes issue 185. | dominique.leuenberger@gmail.com | 2012-12-10 | 1 | -0/+2 |
| | |||||
* | Fix mixed used of tabs and space for indentation | nicolas.dufresne@gmail.com | 2012-10-15 | 1 | -6/+6 |
| | |||||
* | Fix http chunk encoded PAC | nicolas.dufresne@gmail.com | 2012-10-15 | 1 | -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.com | 2012-10-10 | 1 | -1/+1 |
| | |||||
* | Fix potential infinit loop uppon network error | nicolas.dufresne@gmail.com | 2012-10-10 | 1 | -2/+5 |
| | |||||
* | Fix buffer overflow downloading large pac file | nicolas.dufresne@gmail.com | 2012-10-10 | 1 | -1/+2 |
| | | | This fixes CVE CVE-2012-4504 | ||||
* | Don't confuse ":" in path with a port divider | nicolas.dufresne@gmail.com | 2012-07-05 | 1 | -0/+2 |
| | |||||
* | Fix build with gcc 4.7. Fixes issue 173 | dominique.leuenberger@gmail.com | 2012-03-09 | 1 | -0/+1 |
| | |||||
* | Issue 170: need also check "Transfer-Encoding: chunked" for chunk for http pac | dominique.leuenberger@gmail.com | 2012-02-05 | 1 | -1/+1 |
| | |||||
* | Remove unused mime type check | nicolas.dufresne | 2011-06-06 | 1 | -8/+2 |
| | |||||
* | Fix issue 159: a pac http://address.pac.com is valid and should be treated ↵ | dominique.leuenberger@gmail.com | 2011-04-08 | 1 | -1/+1 |
| | | | | as http://address.pac.com/ | ||||
* | fix invalid size read in fstat() | npmccallum | 2011-02-06 | 1 | -7/+5 |
| | |||||
* | fix mismatched delete[] | npmccallum | 2011-02-06 | 1 | -1/+1 |
| | |||||
* | Get url from file: Initialize the buffer to 0, to not have garbage. | dominique.leuenberger@gmail.com | 2011-02-06 | 1 | -0/+1 |
| | |||||
* | Avoid using static constructor in shared library | nicolas.dufresne | 2011-01-03 | 1 | -7/+0 |
| | |||||
* | Avoid sending negative values to isalnum() | nicolas.dufresne | 2010-10-06 | 1 | -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::encode | nicolas.dufresne | 2010-10-06 | 1 | -1/+1 |
| | |||||
* | Avoid to read the NULL character in strings | nicolas.dufresne | 2010-10-06 | 1 | -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 fixes | npmccallum | 2010-09-26 | 1 | -1/+1 |
| | |||||
* | Avoid reading one too far inside a std::string | nicolas.dufresne | 2010-09-01 | 1 | -1/+2 |
| | |||||
* | Fixed crash in URL parse | nicolas.dufresne | 2010-08-20 | 1 | -3/+3 |
| | |||||
* | Make sure authority_end is not npos | nicolas.dufresne | 2010-07-22 | 1 | -0/+2 |
| | |||||
* | Implemented url::encode() and unit test | nicolas.dufresne | 2010-06-02 | 1 | -0/+22 |
| | |||||
* | Rewrite url parser class | nicolas.dufresne | 2010-06-01 | 1 | -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 present | nicolas.dufresne | 2010-05-17 | 1 | -2/+9 |
| | |||||
* | Added {} at the end of loops that does nothing | nicolas.dufresne | 2010-03-29 | 1 | -1/+1 |
| | | | This removes warnings emited by GCC. | ||||
* | fix build errors for openSuSE | npmccallum | 2010-03-06 | 1 | -11/+11 |
| | |||||
* | fix file:// urls for pacs | npmccallum | 2010-03-06 | 1 | -1/+1 |
| | |||||
* | correct some delete references; fixes issue 91; patch from Erik van Pienbroek | npmccallum | 2010-03-05 | 1 | -8/+8 |
| | |||||
* | fix all symbols with a leading '_' | npmccallum | 2010-02-24 | 1 | -16/+16 |
| | |||||
* | make pac fetching work on win32 | npmccallum | 2010-02-22 | 1 | -2/+4 |
| | |||||
* | fixed a url crasher | npmccallum | 2010-02-22 | 1 | -7/+7 |
| | |||||
* | fix a crasher | npmccallum | 2010-02-22 | 1 | -0/+7 |
| | |||||
* | remove googlecode from the namespace | npmccallum | 2010-02-05 | 1 | -12/+5 |
| |