URL:
http://gna.org/bugs/?23616
Summary: cmp_buffer0/1 not big enough?
Project: Freeciv
Submitted by: jtn
Submitted on: Mon 25 May 2015 21:55:42 BST
Category: None
Severity: 3 - Normal
Priority: 5 - Normal
Status: None
Assigned to: None
Originator Email:
Open/Closed: Open
Release: trunk r29124
Discussion Lock: Any
Operating System: None
Planned Release:
___
Details:
The new ICU-based string comparison stuff allocates cmp_buffer0/1 as
cmp_buffer_size chars, but passes cmp_buffer_size to u_strFromUTF8() in an
argument that's documented
http://icu-project.org/apiref/icu4c/ustring_8h.html#a5f9ff224b11166a106d1b3ac26454cd4
as The size of the buffer (number of UChars). sizeof(UChar) probably
sizeof(char).
(I went looking because my trunk freeciv-gtk2 is segfaulting on quit in
cmp_buffers_free(). Haven't determined whether this is the cause.)
___
Reply to this item at:
http://gna.org/bugs/?23616
___
Message sent via/by Gna!
http://gna.org/
___
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev