[freetds] Possible free(NULL) in tsql
ZIGLIO, Frediano, VF-IT
Frediano.Ziglio at vodafone.com
Tue Oct 16 09:24:27 EDT 2007
> James K. Lowden wrote:
> > ZIGLIO, Frediano, VF-IT wrote:
> >> if continue at line 711 is hit s2 == NULL and a free(s2)
> (line 690) is
> >> executed. This can cause a core in some system.
> > Hi Freddy,
> > Well, I think that's a rumor, because I'm pretty sure we
> expect free(NULL)
> > to work elsewhere in the code.
> ANSI C requires it to work. If it causes a core dump, then
> the system
> is broken by any reasonable definition. See ISO/IEC
> 9899:1990 188.8.131.52
> and then file a bug report with your vendor...
Seems fantastic. There are a lot of places where we test to avoid
More information about the FreeTDS