We're updating the issue view to help you get more done. 

UVector doesn't copy itself properly

Description

There is a crashing bug in UnicodeSet.
consider the code:
UnicodeSet t2;
t2.add(UnicodeString("abc"));
UnicodeSet test(t2);
UnicodeString ustrPat;
test.toPattern(ustrPat, TRUE);

It crashes! The problem is in the declaration of UTokenAssigner in UVector.h:
typedef void U_CALLCONV UTokenAssigner(UHashTok dst,
UHashTok src);

This, of course, should be
typedef void U_CALLCONV UTokenAssigner(UHashTok *dst,
UHashTok *src);

src is not that important, but if dst is not a pointer, then you can assign
stuff inside until you turn blue....

Environment

Status

Assignee

weivsara@gmail.com

Reporter

TracBot

Labels

tracCreated

Aug 30, 2002, 1:11 AM

tracOwner

weiv

tracProject

ICU4C

tracReporter

weiv@a95c9666650cfc8d

tracResolution

fixed

tracReviewer

srl, alan

tracStatus

closed

Components

Fix versions

Priority

blocker