Out-of-bounds (src/backend/utils/misc/queryjumble.c)

From: Ranier Vilela <ranier(dot)vf(at)gmail(dot)com>
To: Pg Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Out-of-bounds (src/backend/utils/misc/queryjumble.c)
Date: 2021-06-21 17:07:59
Message-ID: CAEudQAreyPZOTcjvKrE3es3cDpATiHyTY258mDa-jPU9zaYL_w@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,

Per Coverity.
3 out-of-bounds at function AppendJumble.

They have the face, smell and color of typo.
And we usually increment the character count after a memcpy.

Coverity no longer complained after the patch.

Thoughts?

regards,
Ranier Vilela

Attachment Content-Type Size
fix_out_of_bounds_queryjumble.patch application/octet-stream 629 bytes

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Peter Geoghegan 2021-06-21 17:11:21 Re: disfavoring unparameterized nested loops
Previous Message Tom Lane 2021-06-21 17:01:18 Re: disfavoring unparameterized nested loops