pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: Fix bogus size calculation introduced by commit cc5f81366.
3+ messages / 3 participants
[nested] [flat]

* pgsql: Fix bogus size calculation introduced by commit cc5f81366.
@ 2017-09-17 15:35 Tom Lane <tgl@sss.pgh.pa.us>
  2017-09-17 21:58 ` Re: pgsql: Fix bogus size calculation introduced by commit cc5f81366. Thomas Munro <thomas.munro@enterprisedb.com>
  0 siblings, 1 reply; 3+ messages in thread

From: Tom Lane @ 2017-09-17 15:35 UTC (permalink / raw)
  To: pgsql-committers

Fix bogus size calculation introduced by commit cc5f81366.

The elements of RecordCacheArray are TupleDesc, not TupleDesc *.
Those are actually the same size, so that this error is harmless,
but it's still wrong --- and it might bite us someday, if TupleDesc
ever became a struct, say.

Per Coverity.

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/cad22075bc2ce9c1fbe61e8d3969d4dbdb5bc1f3

Modified Files
--------------
src/backend/utils/cache/typcache.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: pgsql: Fix bogus size calculation introduced by commit cc5f81366.
  2017-09-17 15:35 pgsql: Fix bogus size calculation introduced by commit cc5f81366. Tom Lane <tgl@sss.pgh.pa.us>
@ 2017-09-17 21:58 ` Thomas Munro <thomas.munro@enterprisedb.com>
  2017-09-18 00:49   ` Re: pgsql: Fix bogus size calculation introduced by commit cc5f81366. Michael Paquier <michael.paquier@gmail.com>
  0 siblings, 1 reply; 3+ messages in thread

From: Thomas Munro @ 2017-09-17 21:58 UTC (permalink / raw)
  To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: pgsql-committers

On Mon, Sep 18, 2017 at 3:35 AM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> Fix bogus size calculation introduced by commit cc5f81366.
>
> The elements of RecordCacheArray are TupleDesc, not TupleDesc *.
> Those are actually the same size, so that this error is harmless,
> but it's still wrong --- and it might bite us someday, if TupleDesc
> ever became a struct, say.
>
> Per Coverity.

Thanks.

While googling around trying to find where I could read Coverity's
output myself I was intrigued to see that https://scan.coverity.com
offers integration with Travis CI[1], which suggests the possibility
of automatically scanning all Commitfest submissions.  The trouble is
that for projects over 1 million lines of code they limit scans to one
per day, so it'd take over 200 days to get through the current
Commitfest, assuming no one ever posted new versions or committed
anything in the meantime.  Hah.  I guess Coverity analysis is going to
have to remain post-commit only.

[1] https://scan.coverity.com/travis_ci

-- 
Thomas Munro
http://www.enterprisedb.com


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers



^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: pgsql: Fix bogus size calculation introduced by commit cc5f81366.
  2017-09-17 15:35 pgsql: Fix bogus size calculation introduced by commit cc5f81366. Tom Lane <tgl@sss.pgh.pa.us>
  2017-09-17 21:58 ` Re: pgsql: Fix bogus size calculation introduced by commit cc5f81366. Thomas Munro <thomas.munro@enterprisedb.com>
@ 2017-09-18 00:49   ` Michael Paquier <michael.paquier@gmail.com>
  0 siblings, 0 replies; 3+ messages in thread

From: Michael Paquier @ 2017-09-18 00:49 UTC (permalink / raw)
  To: Thomas Munro <thomas.munro@enterprisedb.com>; +Cc: Tom Lane <tgl@sss.pgh.pa.us>; pgsql-committers

On Mon, Sep 18, 2017 at 6:58 AM, Thomas Munro
<thomas.munro@enterprisedb.com> wrote:
> While googling around trying to find where I could read Coverity's
> output myself I was intrigued to see that https://scan.coverity.com
> offers integration with Travis CI[1], which suggests the possibility
> of automatically scanning all Commitfest submissions.  The trouble is
> that for projects over 1 million lines of code they limit scans to one
> per day, so it'd take over 200 days to get through the current
> Commitfest, assuming no one ever posted new versions or committed
> anything in the meantime.  Hah.  I guess Coverity analysis is going to
> have to remain post-commit only.

There are a mountain of false positives to take care of when doing the
initial scanning of a new project. So while the initial cost is high,
this would be maintainable in the long term if there is a continuous
effort put into it. The limit due to the project size sucks, but at
least this lets us know that coverity is not a solution for the CF.
Careful review is able to remove most of the problems anyway.
-- 
Michael


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers



^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2017-09-18 00:49 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2017-09-17 15:35 pgsql: Fix bogus size calculation introduced by commit cc5f81366. Tom Lane <tgl@sss.pgh.pa.us>
2017-09-17 21:58 ` Thomas Munro <thomas.munro@enterprisedb.com>
2017-09-18 00:49   ` Michael Paquier <michael.paquier@gmail.com>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox