[OpenWrt-Devel] [PATCH 6/6] uclient: Handle memory allocation failure for url

2018-02-17 Thread Tobias Schramm
Signed-off-by: Tobias Schramm --- uclient.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/uclient.c b/uclient.c index 8862b55..dfbe26c 100644 --- a/uclient.c +++ b/uclient.c @@ -59,6 +59,9 @@ __uclient_get_url(const struct uclient_backend *backend, &uri_buf, strlen(locati

[OpenWrt-Devel] [PATCH 5/6] uclient-utils: Handle memory allocation failure for url file name

2018-02-17 Thread Tobias Schramm
Signed-off-by: Tobias Schramm --- uclient-utils.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/uclient-utils.c b/uclient-utils.c index a375eea..ee0f8e8 100644 --- a/uclient-utils.c +++ b/uclient-utils.c @@ -177,8 +177,12 @@ char *uclient_get_url_filename(const char

[OpenWrt-Devel] [PATCH 4/6] uclient-http: Handle memory allocation failure

2018-02-17 Thread Tobias Schramm
Signed-off-by: Tobias Schramm --- uclient-http.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/uclient-http.c b/uclient-http.c index 2a3cf5d..24f091e 100644 --- a/uclient-http.c +++ b/uclient-http.c @@ -944,6 +944,9 @@ static struct uclient *uclient_http_alloc(void) struct uclien

[OpenWrt-Devel] [PATCH 0/6] uclient: Handle memory allocation failures

2018-02-17 Thread Tobias Schramm
Hi, this series of patches adds some code to handle memory allocation failures without crashing. Previously a lot of memory allocations were not checked for NULL ptrs resulting in nullpointer dereferences if (lib)uclient ran out of memory Regards Tobias Schramm Tobias Schramm (6): uclient-fe

[OpenWrt-Devel] [PATCH 3/6] uclient-http: auth digest: Handle multiple possible memory allocation failures

2018-02-17 Thread Tobias Schramm
Signed-off-by: Tobias Schramm --- uclient-http.c | 41 - 1 file changed, 32 insertions(+), 9 deletions(-) diff --git a/uclient-http.c b/uclient-http.c index 36e051b..2a3cf5d 100644 --- a/uclient-http.c +++ b/uclient-http.c @@ -433,9 +433,10 @@ static void

[OpenWrt-Devel] [PATCH 1/6] uclient-fetch: Check for nullpointer returned by open_output_file

2018-02-17 Thread Tobias Schramm
Signed-off-by: Tobias Schramm --- uclient-fetch.c | 5 + 1 file changed, 5 insertions(+) diff --git a/uclient-fetch.c b/uclient-fetch.c index 6961d94..46f9b3d 100644 --- a/uclient-fetch.c +++ b/uclient-fetch.c @@ -122,6 +122,11 @@ static int open_output_file(const char *path, uint64_t resum

[OpenWrt-Devel] [PATCH 2/6] uclient-http: basic auth: Handle memory allocation failure

2018-02-17 Thread Tobias Schramm
Signed-off-by: Tobias Schramm --- uclient-http.c | 9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/uclient-http.c b/uclient-http.c index ef8de98..36e051b 100644 --- a/uclient-http.c +++ b/uclient-http.c @@ -299,7 +299,7 @@ static bool uclient_request_supports_body(enum

Re: [OpenWrt-Devel] dnscrypt-proxy package missing in snapshot

2018-02-17 Thread Maciej Soltysiak
On my MIPS32 (WNDR3800) system, I noticed the C binary was <100k. The GO binary is 6.5MB, I ran upx on it and it went down to 1.5M. It incurs about 1s of delay for unpacking, but it works. I don't know much about packaging this around the uci scripting, etc, but I hope this helps the maintainer a

Re: [OpenWrt-Devel] dnscrypt-proxy package missing in snapshot

2018-02-17 Thread Maciej Soltysiak
The OpenWrt Makefile aims to get dnscrypt-proxy 1.9.5 from a mirror at https://github.com/dyne/dnscrypt-proxy However, the upstream (Frank Denis) recently released a 2.0 which is significantly different. It's now written in go, instead of C and it support the new version of the protocol (v2). If

[OpenWrt-Devel] mvebu to kernel 4.14

2018-02-17 Thread Hauke Mehrtens
Hi, I would like to use kernel 4.14 by default on the mvebu target soon. If you are aware of any regressions compared to kernel 4.9 then please report them, now. I only have a Linksys device here for testing and I haven't tested the SFP functionality, would be nice if someone could test if that s

Re: [OpenWrt-Devel] [LEDE-DEV] [PATCH v1 1/1] openssh: disable passwords for openssh server

2018-02-17 Thread Karl Palsson
Philip Prindeville wrote: > > > In a perfect world, no one should ever have to build with > patches, anything in files/, cherry-picked commits, etc. > Everything would be expressed in the .config (or > kernel-config). I think this is probably the root of all the discussion. I agree with you th

Re: [OpenWrt-Devel] [LEDE-DEV] [PATCH] add support for OCTEON TX target

2018-02-17 Thread Hauke Mehrtens
On 02/15/2018 06:42 PM, Tim Harvey wrote: > On Tue, Feb 13, 2018 at 12:51 PM, Hauke Mehrtens wrote: >> On 02/13/2018 09:46 PM, Hauke Mehrtens wrote: >>> Hi Tim, >>> >>> sorry that I haven't reviewed this earlyer, but now I saw some problems, >>> see my comments inline. >>> >>> Can you please creat

Re: [OpenWrt-Devel] [LEDE-DEV] [PATCH v3 1/4] kernel: backport dwc pci enumeration fix

2018-02-17 Thread Hauke Mehrtens
On 02/15/2018 05:34 PM, Tim Harvey wrote: > Backport of: http://patchwork.ozlabs.org/patch/860701/ > > Signed-off-by: Tim Harvey > --- > .../generic/pending-4.14/812-pci-dwc-fix-enumeration.patch| 11 > +++ > 1 file changed, 11 insertions(+) > create mode 100644 > target/linux/ge

Re: [OpenWrt-Devel] [LEDE-DEV] [PATCH v3 0/4]: imx6: update to Linux 4.14

2018-02-17 Thread Hauke Mehrtens
On 02/15/2018 05:34 PM, Tim Harvey wrote: > Testted on a Gateworks GW54xx. Does not support enabling imx-drm modules > yet as those will need some adjustments based on kernel configs. > > v3: > - included missing patch for pcie enumeration fix > > v2: > - move dwc pci patch to generic (Koen) >