Skip to Content.
Sympa Menu

freetds - RE: [freetds] Found Segmentation fault causes

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: "Lowden, James K" <LowdenJK AT bernstein.com>
  • To: "'FreeTDS Development Group'" <freetds AT lists.ibiblio.org>
  • Subject: RE: [freetds] Found Segmentation fault causes
  • Date: Wed, 7 May 2003 10:22:36 -0400

> From: Frediano Ziglio [mailto:freddyz77 AT tin.it]
> Sent: May 7, 2003 1:43 AM
>
> Il mer, 2003-05-07 alle 05:22, Aliet Santiesteban Sifontes ha scritto:
> > Hi all:
> > I'll find another cause, the segmentation it happens
> > too when there are characters like ¡Ü o ¦Õ.
>
> Yes, if you use UTF-8 these seem invalid input sequence, so conversion
> stop. Good spot! IMHO we should truncate buffer on reading
> from wire and
> return error if to wire.

Per the TODO, I plan to emulate Sybase's messages and behavior. For writing
to the database, stop on error. For reading, replace with '?'. Emit
messages 2402 and 2403, respectively.

Why would truncating on read be better? I think substitution + warning
gives the application more flexibility. If someone is willing to code for
it, we could allow configurable substitutions (i.e., something other than
'?') and/or a callback function that could intervene.

--jkl


The information contained in this transmission may contain privileged and
confidential information and is intended only for the use of the person(s)
named above. If you are not the intended recipient, or an employee or agent
responsible for delivering this message to the intended recipient, any
review, dissemination, distribution or duplication of this communication is
strictly prohibited. If you are not the intended recipient, please contact
the sender immediately by reply e-mail and destroy all copies of the
original message. Please note that we do not accept account orders and/or
instructions by e-mail, and therefore will not be responsible for carrying
out such orders and/or instructions.






Archive powered by MHonArc 2.6.24.

Top of Page