Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#76 widget.cpp crash fltk console if use different font

closed-fixed
nobody
None
5
2007-03-09
2005-10-07
Henry N.
No

I'm run FLTK console with user setting of font, or font
size only, such for sample:
set COLINUX_CONSOLE_FONT=Lucida Console:12

The console is seen with black or white only client area
and crash with an "invalid memory access".

I found the bug line. It's near
src/colinux/user/console/widget.cpp:169

The line "end = row_start + x2" set the variable "end" to
memory position behind the buffer "console->screen".

Have added a bug-trace and a workarround.
This was seen at first start:
end=0x987002 limit=0x987000 row=0x986f60
start=0x986f60 x1=0 x2=81 y1=0 y2=26

Why is x2 - x1 = 81 here?
That's to big, have only 80 columns!

Henry

Discussion

  • Henry N.
    Henry N.
    2005-10-07

    changed source with workarrount and bug prints

     
    Attachments
  • Henry N.
    Henry N.
    2005-10-07

    • summary: widget.cpp terms fltk console on chang font --> widget.cpp crash fltk console if use different font
     
  • Henry N.
    Henry N.
    2007-03-09

    • status: open --> closed
     
  • Henry N.
    Henry N.
    2007-03-09

    Logged In: YES
    user_id=579204
    Originator: YES

    the workarrount is working, so I close this

     
  • Henry N.
    Henry N.
    2007-03-09

    • status: closed --> closed-fixed