[Dnsmasq-discuss] [PATCH v2 1/1] do not include stdio.h before dnsmasq.h
Christian Hesse
list at eworm.de
Fri Sep 15 12:26:45 BST 2017
Christian Hesse <list at eworm.de> on Wed, 2017/08/23 10:23:
> From: Christian Hesse <mail at eworm.de>
>
> We define some constants in dnsmasq.h, which have an influence on
> stdio.h. So do not include stdio.h before dnsmasq.h.
>
> This fixes a segmentation fault caused by size mismatch for
> size_t and off_t on systems where these are 4 bytes without
> large file support.
> Reported, debugged and tested by Arne Wörner <arne_woerner at yahoo.com>.
>
> Signed-off-by: Christian Hesse <mail at eworm.de>
> ---
> src/helper.c | 1 -
> 1 file changed, 1 deletion(-)
>
> diff --git a/src/helper.c b/src/helper.c
> index 635677e..281cb4a 100644
> --- a/src/helper.c
> +++ b/src/helper.c
> @@ -14,7 +14,6 @@
> along with this program. If not, see <http://www.gnu.org/licenses/>.
> */
>
> -#include <stdio.h>
> #include "dnsmasq.h"
>
> #ifdef HAVE_SCRIPT
Any news on this one (and the follow up patch)?
--
main(a){char*c=/* Schoene Gruesse */"B?IJj;MEH"
"CX:;",b;for(a/* Best regards my address: */=0;b=c[a++];)
putchar(b-1/(/* Chris cc -ox -xc - && ./x */b/42*2-3)*42);}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <http://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/attachments/20170915/702c9c9a/attachment.sig>
More information about the Dnsmasq-discuss
mailing list