| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
If we don't assign the temporary std::string returned by
url_.to_string() to a variable, then it immediately goes out of scope
and is freed, resulting in the result of c_str() pointing into freed
memory. This works about as well as you would expect.
Signed-off-by: Simon McVittie <smcv@debian.org>
|
|\ \ \
| | | |
| | | | |
Fix race conditions in GSettings backend
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
If we haven't polled the pxgsettings helper for a while, there might
be more proxy configuration updates in the pipe than will fit in a
single read() call.
Signed-off-by: Simon McVittie <smcv@debian.org>
|
| | |/
| |/|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Previously, the gsettings (gnome3) module would wait until it had read
at least one key/value pair for each GSettings schema requested on the
command line. However, GSettings schemas often contain more than one
key. With a relatively elaborate proxy configuration, we don't
necessarily read all of them in one read() from the pipe, resulting in
the full configuration not being read until later - but for proxy(1),
"later" is too late, because it exits after the first query.
To resolve this, add a way for pxgsettings to signal that it has
written all the initial values (a blank line), and wait for that.
Fixes: #116
Signed-off-by: Simon McVittie <smcv@debian.org>
|
|\ \ \
| |_|/
|/| | |
cmake: fix generate-time warning
|
|/ /
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
This commit fixes the following warning:
CMake Warning (dev) in CMakeLists.txt:
No project() command is present. The top-level CMakeLists.txt file must
contain a literal, direct call to the project() command. Add a line of
code such as
project(ProjectName)
near the top of the file, but after cmake_minimum_required().
CMake is pretending there is a "project(Project)" command on the first
line.
This warning is for project developers. Use -Wno-dev to suppress it.
|
|\ \
| | |
| | | |
Update NEWS en route to 0.4.16
|
|/ / |
|
|\ \
| | |
| | | |
New attempt to merge pacrunner support
|
| | |
| | |
| | |
| | |
| | | |
Use the same algorithm as pacrunner's own "shim" libproxy, and
add support for socks4 and socks5.
|
| | |
| | |
| | |
| | |
| | | |
If the "org.pacrunner" D-Bus name is owned, it's likely that pacrunner
is running. Use this as test for the module.
|
| | | |
|
|\ \ \
| |_|/
|/| | |
RFC: Keep visibility of non-px_* symbols
|
| |/
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Symbols other than px_* are still used by modules, so they have to be visible
as well. Unfortunately the version script can't deal with C++ classes properly,
it's not possible to match the vtable, typeinfo, etc. without resorting to the
platform specific mangling.
As a workaround, keep the default visibility of symbols which aren't explicitly
mentioned, this means that while users of private API wouldn't be caught
anymore, everything continues to work as usual, just with px_* being versioned.
|
|\ \
| | |
| | | |
pxgsettings: use the correct syntax to connect to the changed signal
|
|/ /
| |
| |
| |
| | |
As it is a detailed signal, it only makes sense to append a :: when there is a specific property to target.
It used to be accepted but triggers a runtime warning with latest GLib.
|
|\ \
| | |
| | | |
Small performance improvements
|
| | |
| | |
| | |
| | |
| | | |
* pass strings by const & instead of copy
* Search single chars as chars and not as strings
|
|\ \ \
| | | |
| | | | |
mozjs: Port to mozjs 68
|
| | |/
| |/|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
There are a number of API changes that need to be adapted to, notably
- JS_EncodeString is gone; need to use JS_EncodeStringToUTF8 now which
requires a rooted object to be passed in.
- JS_free is gone
The pkg-config file ships some flags which need to be supplied to the
build.
|
|\ \ \
| | | |
| | | | |
unistd.h is not present in Windows and makes build fail
|
| | |/
| |/| |
|
|\ \ \
| |_|/
|/| | |
config_kde: Initialize config_loc.mtime explicitly
|
|/ /
| |
| |
| | |
Fixes #110
|
|\ \
| |/
|/| |
python: support Python 3.9
|
|/
|
|
| |
Add 3.9 to the list of accepted Python 3 versions.
|
|\
| |
| | |
include <string.h> in modules/config_gnome3.cpp
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Needed to fix build on Solaris 11:
libproxy/modules/config_gnome3.cpp:190:3: error: ‘memset’ was not declared
in this scope
FD_ZERO(&rfds);
^
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
|\ \
| | |
| | | |
Build with mozjs 60 instead
|
| | |
| | |
| | |
| | | |
This seems enough to make it work with mozjs 60
|
|\ \ \
| | | |
| | | | |
Fix memory leak in functions 'dnsResolve' and 'webkit_pacrunner::run'
|
|/ / /
| | |
| | |
| | | |
Delete memory allocated in jstr2str before return statements.
|
|\ \ \
| |/ /
|/| | |
get-pac-test: Fix build with clang/libc++
|
|/ /
| |
| |
| |
| |
| |
| | |
get-pac-test.cpp:55:10: error: assigning to 'int' from incompatible type '__bind<int &, sockaddr *, unsigned int>'
ret = bind(m_sock, (sockaddr*)&addr, sizeof (struct sockaddr_in)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|\ \
| |/
|/| |
Trivial: Add NEWS entries on the way to 0.4.16
|
| | |
|
|\ \
| |/
| | |
Revert "Do not invoke extra shell to run pxgsettings"
|
|/
|
|
|
|
|
|
|
|
|
|
|
|
| |
"""
sigh
OK I now see why it was using /bin/sh to start the helper.
It's because the code is concatenate the gsettings keys to watch (in all_keys) as parameters
So this is not enough to just remove /bin/bash
"""
This reverts commit 8012bed4405efa31fffb57d6282de3e1513e4bd9.
|
|\
| |
| | |
Add call to JS::InitSelfHostedCode()
|
|/
|
|
| |
This is needed otherwise mozjs crashes
|
|\
| |
| | |
Build with mozjs-52
|
|/
|
|
| |
Fixes #71
|
|\
| |
| | |
python: support Python 3.7 and 3.8
|
|/
|
|
| |
Add 3.7 and 3.8 to the list of accepted Python 3 versions.
|
|\
| |
| | |
Do not invoke extra shell to run pxgsettings
|
| |
| |
| |
| | |
Fixes issue #57
|
| |
| |
| |
| |
| |
| | |
* Travis: Add workaround for https://github.com/travis-ci/travis-ci/issues/6307
* Travis on mac fails, without source change... yay
|
|/
|
|
|
|
|
| |
since the image updates of Sept 2017, python was no longer found
in $PATH; the issue hits a lot of travis consumers, but seems
not much changes... so copy workaround from other projects
https://github.com/travis-ci/travis-ci/issues/8363
|
|\
| |
| | |
Add public px_proxy_factory_free_proxies function
|
| | |
|