[freetds] Crash selecting a blank TEXT field

ZIGLIO, Frediano, VF-IT Frediano.Ziglio at vodafone.com
Mon Jun 4 11:21:14 EDT 2007


> 
> Um.. sorry for probably sounding dumb but whats DM? I'm using 
> PyODBC if
> that's what you mean?
> 
> Luke.
> 

DM is the Driver Manager, usually unixODBC or iODBC under *nix.

In this case you should have a stack like

Your app (run by Python)
  PyODBC
    DM
      FreeTDS ODBC Driver

Now probably PyODBC send a wrong BufferLength, DM do not catch this
problem and wrongly pass this value to our driver... which correctly
core...

freddy77

> On 04/06/07, ZIGLIO, Frediano, VF-IT 
> <Frediano.Ziglio at vodafone.com> wrote:
> >
...
> > > odbc.c:4396:SQLGetData(0x844d548, 12, 1, 0xb6df3608, 
> 2048, 0xb6df3600)
> > > odbc.c:4396:SQLGetData(0x844d548, 12, 1, 0xb76728ab, -2046,
> > > 0xb6df3600)
> > >
> >
> > This has nothing to do with TEXT problem. Upper layer pass 
> a value <0
> > (-2046) for BufferLength, this should be blocked by DM and 
> not used by
> > caller! Which DM are you using?
> >
> > > That's the very end of the log. If you need any more info
> > > just let me know.
> > >
> > > Luke.
> > >
> >




More information about the FreeTDS mailing list