CVS commit: src/lib/libwrap

2024-10-04 Thread Roland Illig
Module Name:src Committed By: rillig Date: Fri Oct 4 08:37:20 UTC 2024 Modified Files: src/lib/libwrap: expandm.c Log Message: libwrap: fix lint warning about "effectively discards 'const'" lib/libwrap/expandm.c(57): warning: call to 'strstr' effectively discards 'const'

CVS commit: src/lib/libwrap

2024-10-04 Thread Roland Illig
Module Name:src Committed By: rillig Date: Fri Oct 4 08:37:20 UTC 2024 Modified Files: src/lib/libwrap: expandm.c Log Message: libwrap: fix lint warning about "effectively discards 'const'" lib/libwrap/expandm.c(57): warning: call to 'strstr' effectively discards 'const'

Re: CVS commit: src/lib/libwrap

2019-01-11 Thread Andreas Gustafsson
Christos, I think libwrap/diag.c 1.15 will read random memory if either the tag or tcpd_context.file contains "%s". It's similar to 1.9 but lacks the code in 1.9 to escape the percent signs (using fixed-length buffers...). Kludgy as it was, 1.13 seems like the least bad version so far. -- Andre

Re: CVS commit: src/lib/libwrap

2019-01-11 Thread Valery Ushakov
On Fri, Jan 11, 2019 at 07:39:58 +0700, Robert Elz wrote: > farily easy to add, if only gcc didn't go and do printf format string > analysis and complain when it sees something it does not understand. gcc has plugin API that lets you add support for custom format languages. We use it at work whe

Re: CVS commit: src/lib/libwrap

2019-01-10 Thread Robert Elz
Date:Thu, 10 Jan 2019 20:21:52 -0500 From:chris...@zoulas.com (Christos Zoulas) Message-ID: <20190111012152.cc59917f...@rebar.astron.com> | I understand, this is why I grepped the source for %m and saw that there | was no use other than " %m\0". The point was mos

Re: CVS commit: src/lib/libwrap

2019-01-10 Thread Christos Zoulas
On Jan 11, 7:39am, k...@munnari.oz.au (Robert Elz) wrote: -- Subject: Re: CVS commit: src/lib/libwrap | | PR/53851: Andreas Gustafsson: libwrap prints "m" instead of errno | | Handle %m inline if needed, otherwise vasprintf strips the %m and... | | That change handles the simple

Re: CVS commit: src/lib/libwrap

2019-01-10 Thread Robert Elz
Date:Thu, 10 Jan 2019 08:53:27 -0500 From:"Christos Zoulas" Message-ID: <20190110135327.189a1f...@cvs.netbsd.org> | PR/53851: Andreas Gustafsson: libwrap prints "m" instead of errno | Handle %m inline if needed, otherwise vasprintf strips the %m and... That chang