[Yazlist] Bug in zoom-c.c

Adam Dickmeiss adam at indexdata.dk
Fri Jun 1 09:04:44 CEST 2012


On 05/31/2012 07:41 PM, Daniel Beschorner wrote:
> Hello YAZ,
>
> we hit a bug in zoom-c.c that sometimes corrupts the connection string.
>
> Take a look below, "remainder" is duplicated, but "c->host_port" (where "remainder" resides) freed before, wrong order.
>
>   if (remainder != c->host_port) {
>      xfree(c->host_port);
>      c->host_port = xstrdup(remainder);
>      /*printf("# reset hp='%s'\n", remainder);*/
> }
>
> It drove me crazy for a while, a program using yaz4.dll runs under XP, but not Win7 x64 :-)
This bug has been present since 2005.

Presumably, this set-options scheme for connect has not been used much.

Thanks.

/ Adam
>
> Daniel
>
>
> _______________________________________________
> Yazlist mailing list
> Yazlist at lists.indexdata.dk
> http://lists.indexdata.dk/cgi-bin/mailman/listinfo/yazlist
>




More information about the Yazlist mailing list