From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=0.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,UNPARSEABLE_RELAY autolearn=no autolearn_force=no version=3.4.4 Received: from blvuug.org (hurricane.the-brannons.com [IPv6:2602:ff06:725:1:20::25]) by inbox.vuxu.org (Postfix) with ESMTP id C74D629362 for ; Fri, 5 Apr 2024 20:37:37 +0200 (CEST) Received: from hurricane (localhost.localdomain [127.0.0.1]) by blvuug.org (OpenSMTPD) with ESMTP id 3c29f905 for ; Fri, 5 Apr 2024 18:37:36 +0000 (UTC) Received: from nautica.notk.org (ipv6.notk.org [2001:41d0:1:7a93::1]) by hurricane.the-brannons.com (OpenSMTPD) with ESMTPS id e67ce272 (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO) for ; Fri, 5 Apr 2024 18:37:34 +0000 (UTC) Received: by nautica.notk.org (Postfix, from userid 108) id DE8A3C01A; Fri, 5 Apr 2024 20:37:30 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=codewreck.org; s=2; t=1712342250; bh=zzXNoEwp7iR3U6xHSkONw1Ht5zjeSFnDGpuvdgMtqmU=; h=Date:From:To:Subject:References:In-Reply-To:From; b=ecNTgJDLoujdoSVwKZEt6L4RAZZBQy1YiSnBJYGXQixcqH5Kq7Pq93snt38YNCNuY R2InRiEX8nZY2DRG/AWxlzO8Dmrjg1HMsxNi7Fu43ExxY/LLrNSBFBOuksZUskbDGP l2qJZkzd6+JFQWKVRig89l7+aAoYK/XSs9+jtpGWAxnFQbWoPv3GoUm1NoobxJw07p zpLFrIg/CtzTaY+yJq4Pe44mCRlLYtTChl2uQoEq1j3gwqcXphKheROlKfhtEMdNBV RCULp5UGP475iSli7tYI7UZTIsSNwcKYTm2ui0PItOCTZhnZftu7B+nHgVuTE01d9U cHbX5G4udSGQg== Received: from gaia.codewreck.org (localhost [127.0.0.1]) by nautica.notk.org (Postfix) with ESMTPS id 22CC4C009 for ; Fri, 5 Apr 2024 20:37:29 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=codewreck.org; s=2; t=1712342250; bh=zzXNoEwp7iR3U6xHSkONw1Ht5zjeSFnDGpuvdgMtqmU=; h=Date:From:To:Subject:References:In-Reply-To:From; b=ecNTgJDLoujdoSVwKZEt6L4RAZZBQy1YiSnBJYGXQixcqH5Kq7Pq93snt38YNCNuY R2InRiEX8nZY2DRG/AWxlzO8Dmrjg1HMsxNi7Fu43ExxY/LLrNSBFBOuksZUskbDGP l2qJZkzd6+JFQWKVRig89l7+aAoYK/XSs9+jtpGWAxnFQbWoPv3GoUm1NoobxJw07p zpLFrIg/CtzTaY+yJq4Pe44mCRlLYtTChl2uQoEq1j3gwqcXphKheROlKfhtEMdNBV RCULp5UGP475iSli7tYI7UZTIsSNwcKYTm2ui0PItOCTZhnZftu7B+nHgVuTE01d9U cHbX5G4udSGQg== Received: from localhost (gaia.codewreck.org [local]) by gaia.codewreck.org (OpenSMTPD) with ESMTPA id bfcf1ff1 for ; Fri, 5 Apr 2024 18:37:24 +0000 (UTC) Date: Sat, 6 Apr 2024 03:37:09 +0900 From: Dominique Martinet To: edbrowse-dev@edbrowse.org Subject: Re: uninitialized globals Message-ID: References: <8402d7da-8632-5fd7-131e-fa5ea343e386@pcdesk.net> <3749fabd-aadf-95da-99da-04d34268a68a@pcdesk.net> <83c75821-d10a-e05f-6297-03aa56a0ac4a@pcdesk.net> <423bc3f9-e536-9ba8-8d7d-013a0b94c2db@pcdesk.net> X-BeenThere: edbrowse-dev@edbrowse.org List-Id: Edbrowse Development List MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: Sebastian Humenda wrote on Fri, Apr 05, 2024 at 08:18:15PM +0200: > Tyler Spivey schrieb am 05.04.2024, 8:48 -0700: > >You patched sslCerts. That's causing your crash. > > I didn't patch it, I specified a different source. I think that's what he means by patched: edbrowse# cat debian/patches/ssl_certs Make edbrowse use the system CA certificates list. --- src/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/src/main.c +++ b/src/main.c @@ -34,7 +34,7 @@ bool errorExit; int webTimeout = 20, mailTimeout = 0; int displayLength = 500; int verifyCertificates = 1; -char *sslCerts, *pubKey; +char *sslCerts = "/etc/ssl/certs/ca-certificates.crt", *pubKey; int localAccount, maxAccount; struct MACCOUNT accounts[MAXACCOUNT]; bool ebvar = true; // update environment variables before each shell command That cannot be passed to nzFree as it's not an allocated value; this patch should change to set it from strdup at start of main or something. -- Dominique Martinet | Asmadeus