Below is the list of changes that have just been committed into a local
4.0 repository of serg. When serg does a push these changes will
be propagated to the main repository and, within 24 hours after the
push, to the public repository.
For information on how to access the public repository
see http://www.mysql.com/doc/I/n/Installing_source_tree.html
ChangeSet
1.1580 03/08/21 20:13:26 serg@stripped +1 -0
crash BUG#1116 fixed
strings/ctype-tis620.c
1.22 03/08/21 20:13:15 serg@stripped +7 -7
crash BUG#1116 fixed
# This is a BitKeeper patch. What follows are the unified diffs for the
# set of deltas contained in the patch. The rest of the patch, the part
# that BitKeeper cares about, is below these diffs.
# User: serg
# Host: serg.mylan
# Root: /usr/home/serg/Abk/mysql-4.0
--- 1.21/strings/ctype-tis620.c Sat Apr 26 15:44:39 2003
+++ 1.22/strings/ctype-tis620.c Thu Aug 21 20:13:15 2003
@@ -49,7 +49,7 @@
#include "m_ctype.h"
#include "t_ctype.h"
-static uchar* thai2sortable(const uchar *tstr,uint len);
+static uchar* thai2sortable(const uchar *tstr,int len);
#define BUFFER_MULTIPLY 4
#define buffsize(s) (BUFFER_MULTIPLY * (strlen(s) + 1))
@@ -456,7 +456,7 @@
/*
NOTE: isn't it faster to alloc buffer in calling function?
*/
-static uchar* thai2sortable(const uchar * tstr,uint len)
+static uchar* thai2sortable(const uchar * tstr,int len)
{
/* We use only 3 levels (neglect capitalization). */
@@ -467,16 +467,16 @@
uint bufSize;
uint RightSize;
- len= (uint) strnlen((char*) tstr,len);
+ len= (int) strnlen((char*) tstr,len);
bufSize= (uint) buffsize((char*) tstr);
RightSize= sizeof(uchar) * (len + 1);
- if (!(outBuf= pLeft1= pRight1=
+ if (!(outBuf= pLeft1= pRight1=
(uchar *)malloc(sizeof(uchar) * bufSize + RightSize*2)))
return (uchar*) tstr;
pLeft2= pRight2= pRight1 + sizeof(uchar) * bufSize;
pLeft3= pRight3= pRight2 + RightSize;
- while (--len)
+ while (--len > 0)
{
int *t_ctype0= t_ctype[p[0]];
if (isldvowel(*p) && isconsnt(p[1]))
@@ -567,8 +567,8 @@
{
uchar *tc1, *tc2;
int i;
- tc1= thai2sortable(s1, (uint) strlen((char*)s1));
- tc2= thai2sortable(s2, (uint) strlen((char*)s2));
+ tc1= thai2sortable(s1, (int) strlen((char*)s1));
+ tc2= thai2sortable(s2, (int) strlen((char*)s2));
i= strcmp((char*)tc1, (char*)tc2);
free(tc1);
free(tc2);
| Thread |
|---|
| • bk commit into 4.0 tree (1.1580) | Sergei Golubchik | 21 Aug |