Re: may be a buffer overflow problem - Mailing list pgsql-hackers

From Tom Lane
Subject Re: may be a buffer overflow problem
Date
Msg-id 2294788.1718375981@sss.pgh.pa.us
Whole thread Raw
In response to Re: may be a buffer overflow problem  (Daniel Gustafsson <daniel@yesql.se>)
Responses Re: may be a buffer overflow problem
List pgsql-hackers
Daniel Gustafsson <daniel@yesql.se> writes:
> This is indeed buggy and need to take the length into account, as per the
> attached.  This only happens when in the undocumented regression test debug
> mode which may be why it's gone unnoticed.

Seeing that this code is exercised thousands of times a day in the
regression tests and has had a failure rate of exactly zero (and
yes, the tests do check the output), there must be some reason
why it's okay.

            regards, tom lane



pgsql-hackers by date:

Previous
From: "David E. Wheeler"
Date:
Subject: Re: Shouldn't jsonpath .string() Unwrap?
Next
From: Andrew Dunstan
Date:
Subject: Using LibPq in TAP tests via FFI