Opened 18 years ago

Closed 18 years ago

#155 closed defect (fixed)

libc: setlocale calls UniFreeUconvObjec(NULL) instead of UniFreeLocalObject causing crash in UConv.dll

Reported by: bird Owned by: bird
Priority: normal Milestone: libc-0.6.2
Component: libc Version: 0.6
Severity: normal Keywords: setlocale uconv crash
Cc:

Description (last modified by bird)

The perl lib/locale.t failes on the setlocale(LC_ALL, "ar_dz.arabic8.UTF-8") call. Creating the UConv object causes a crash in UCONV.DLL. Trying the abc game I find that it starts crashing with setlocale(LC_ALL, "ar_dz.abcdefghij"), however it's not quite as simple. see last comment.

Change History (1)

comment:1 by bird, 18 years ago

Description: modified (diff)
Resolution: fixed
Status: newclosed
Summary: libc: setlocale crashes in uconv.dll if the codepage bit is too longlibc: setlocale calls UniFreeUconvObjec(NULL) instead of UniFreeLocalObject causing crash in UConv.dll

Turns out the problem was a UniFreeUconvObject(NULL) call that would crash on the 2nd call for some reason. It should've been a UniFreeLocalObject so there was a tiny leak as well. weird.

Note: See TracTickets for help on using tickets.