[PATCHv2 1/2] ubox: fix bad realloc usage

2022-07-18 Thread Rosen Penev
Both cppcheck and gcc's -fanalyzer complain here that realloc is being used improperly. Signed-off-by: Rosen Penev --- kmodloader.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/kmodloader.c b/kmodloader.c index 63bae5e..4b2ffa7 100644 --- a/kmodloader.c +++

Re: [PATCH 1/2] ubox: fix GCC fanalyzer warnings

2022-07-18 Thread Rosen Penev
On Mon, Jul 18, 2022 at 1:45 AM Jo-Philipp Wich wrote: > > Hi, > > > [...] > > - free(aliases); > > + if (aliases) > > + free(aliases); > > This check is redundant, the free() function is guaranteed to be NULL-safe in > the standard: > >The free() function shall cause the

[PATCHv2 2/2] ubox: fix GCC fanalyzer warnings

2022-07-18 Thread Rosen Penev
memory leaks and missing NULL checks. Signed-off-by: Rosen Penev --- v2: remove null check for free kmodloader.c | 12 1 file changed, 12 insertions(+) diff --git a/kmodloader.c b/kmodloader.c index 4b2ffa7..b2e7a8b 100644 --- a/kmodloader.c +++ b/kmodloader.c @@ -336,6 +336,11

[PATCH 2/5] kernel: netsupport: Add kmod-sched-drr

2022-07-18 Thread Hauke Mehrtens via openwrt-devel
The sender domain has a DMARC Reject/Quarantine policy which disallows sending mailing list messages using the original "From" header. To mitigate this problem, the original message has been wrapped automatically by the mailing list software.--- Begin Message --- This adds a package with the DRR

[PATCH 3/5] kernel: netsupport: Extract sched-prio and sched-red

2022-07-18 Thread Hauke Mehrtens via openwrt-devel
The sender domain has a DMARC Reject/Quarantine policy which disallows sending mailing list messages using the original "From" header. To mitigate this problem, the original message has been wrapped automatically by the mailing list software.--- Begin Message --- From: Thomas Langer Extract the

[PATCH 1/5] kernel: netsupport: kmod-sched: explicitly define included modules

2022-07-18 Thread Hauke Mehrtens via openwrt-devel
The sender domain has a DMARC Reject/Quarantine policy which disallows sending mailing list messages using the original "From" header. To mitigate this problem, the original message has been wrapped automatically by the mailing list software.--- Begin Message --- From: Thomas Langer Change

[PATCH 0/5] kernel: netsupport: clenup kmod-sched*

2022-07-18 Thread Hauke Mehrtens via openwrt-devel
The sender domain has a DMARC Reject/Quarantine policy which disallows sending mailing list messages using the original "From" header. To mitigate this problem, the original message has been wrapped automatically by the mailing list software.--- Begin Message --- This cleans up the kmod-sched

[PATCH 5/5] kernel: ipt-ipset: Add ipset/ip_set_hash_ipmac.ko

2022-07-18 Thread Hauke Mehrtens via openwrt-devel
The sender domain has a DMARC Reject/Quarantine policy which disallows sending mailing list messages using the original "From" header. To mitigate this problem, the original message has been wrapped automatically by the mailing list software.--- Begin Message --- Add the

[PATCH 4/5] kernel: netsupport: Add kmod-sched-act-sample

2022-07-18 Thread Hauke Mehrtens via openwrt-devel
The sender domain has a DMARC Reject/Quarantine policy which disallows sending mailing list messages using the original "From" header. To mitigate this problem, the original message has been wrapped automatically by the mailing list software.--- Begin Message --- From: Thomas Langer This adds

Re: [PATCH 1/2] ubox: fix GCC fanalyzer warnings

2022-07-18 Thread Jo-Philipp Wich
Hi, > [...] > - free(aliases); > + if (aliases) > + free(aliases); This check is redundant, the free() function is guaranteed to be NULL-safe in the standard: The free() function shall cause the space pointed to by ptr to be deallocated; that is, made available for further