DO NOT REPLY TO THIS MESSAGE.  INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.

[STR New]

Link: http://www.fltk.org/str.php?L2268
Version: 1.3-current


Both fl_latin1_to_local() and fl_local_to_latin1() have a bug in the second
line, which is used to decide whether to allocate buf:

  if (n<=n_buf) {

'n' is the size of the string to be translated and 'n_buf' is the current
size of the buffer.  This comparison is backwards.  It should be:

  if (n_buf<=n) {

At the moment, calling either of the two routines results in a
segmentation fault, since buf is never allocated, and so NULL gets
returned.  This bug applies to 1.1 as well.


Link: http://www.fltk.org/str.php?L2268
Version: 1.3-current

_______________________________________________
fltk-bugs mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-bugs

Reply via email to