[EMAIL PROTECTED] writes: > >Description: > mysqlgui crash caused by infinite loop in > mysql_read_default_options because strcend > never returns 0 > >How-To-Repeat: > > >Fix: > > --- libmysql/libmysql.c.orig Thu Feb 14 18:30:17 2002 > +++ libmysql/libmysql.c Tue Mar 19 15:52:49 2002 > @@ -712,7 +712,7 @@ static void mysql_read_default_options(s > *end=0; /* Remove '=' */ > } > /* Change all '_' in variable name to '-' */ > - for (end= *option ; (end= strcend(end,'_')) ; ) > + for (end= *option ; (end= strcend(end,'_')) && *end; ) > *end= '-'; > switch (find_type(*option+2,&option_types,2)) { > case 1: /* port */ > > --- libmysql_r/libmysql.c.orig Thu Feb 14 18:30:17 2002 > +++ libmysql_r/libmysql.c Tue Mar 26 22:52:17 2002 > @@ -712,7 +712,7 @@ static void mysql_read_default_options(s > *end=0; /* Remove '=' */ > } > /* Change all '_' in variable name to '-' */ > - for (end= *option ; (end= strcend(end,'_')) ; ) > + for (end= *option ; (end= strcend(end,'_')) && *end; ) > *end= '-'; > switch (find_type(*option+2,&option_types,2)) { > case 1: /* port */
Hi! Thank you, both for your mail fix. This bug was fixed few weeks ago. Fixed version will be released both with 3.23.50 and 4.0.2. Thanks again. -- Regards, __ ___ ___ ____ __ / |/ /_ __/ __/ __ \/ / Mr. Sinisa Milivojevic <[EMAIL PROTECTED]> / /|_/ / // /\ \/ /_/ / /__ MySQL AB, Fulltime Developer /_/ /_/\_, /___/\___\_\___/ Larnaca, Cyprus <___/ www.mysql.com --------------------------------------------------------------------- Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail <[EMAIL PROTECTED]> To unsubscribe, e-mail <[EMAIL PROTECTED]> Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php