[freetds] Possible free(NULL) in tsql
entropy at freetds.org
entropy at freetds.org
Fri Oct 12 19:50:59 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 7.10.3.2
and then file a bug report with your vendor...
--
Cheers,
entropy
More information about the FreeTDS
mailing list