Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nYWzg-0005BP-4T for pgsql-hackers@arkaria.postgresql.org; Sun, 27 Mar 2022 17:48:00 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nYWzf-0005td-0l for pgsql-hackers@arkaria.postgresql.org; Sun, 27 Mar 2022 17:47:59 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nYWze-0005tU-NN for pgsql-hackers@lists.postgresql.org; Sun, 27 Mar 2022 17:47:58 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nYWzc-0005PP-Q1 for pgsql-hackers@postgresql.org; Sun, 27 Mar 2022 17:47:58 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 22RHllP8384292; Sun, 27 Mar 2022 13:47:47 -0400 From: Tom Lane To: Robert Haas cc: =?UTF-8?Q?Dagfinn_Ilmari_Manns=C3=A5ker?= , Justin Pryzby , Dipesh Pandit , Andres Freund , Jeevan Ladhe , Alvaro Herrera , "Shinoda, Noriyoshi (PN Japan FSIP)" , Abhijit Menon-Sen , Dmitry Dolgov <9erthalion6@gmail.com>, Jeevan Ladhe , Mark Dilger , "pgsql-hackers@postgresql.org" , tushar Subject: Re: refactoring basebackup.c (zstd workers) In-reply-to: References: <20220314171152.GU28503@telsasoft.com> <20220317194130.GM28503@telsasoft.com> <20220320194050.GX28503@telsasoft.com> <20220321131833.GB28503@telsasoft.com> <20220321182256.GC28503@telsasoft.com> <871qyvrvvm.fsf@wibble.ilmari.org> Comments: In-reply-to Robert Haas message dated "Tue, 22 Mar 2022 11:37:57 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <384290.1648403267.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Sun, 27 Mar 2022 13:47:47 -0400 Message-ID: <384291.1648403267@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Robert Haas writes: > [ v5-0001-Replace-BASE_BACKUP-COMPRESSION_LEVEL-option-with.patch ] Coverity has a nitpick about this: /srv/coverity/git/pgsql-git/postgresql/src/common/backup_compression.c: 19= 4 in parse_bc_specification() 193 /* Advance to next entry and loop around. */ >>> CID 1503251: Null pointer dereferences (REVERSE_INULL) >>> Null-checking "vend" suggests that it may be null, but it has alre= ady been dereferenced on all paths leading to the check. 194 specification =3D vend =3D=3D NULL ? kwend + 1 : vend + 1; 195 } 196 } Not sure if you should remove this null-check or add some other ones, but I think you ought to do one or the other. regards, tom lane