Opened 15 years ago
Closed 10 years ago
#6185 closed bug (fixed)
System hang when using font with negative size value
Reported by: | X512 | Owned by: | axeld |
---|---|---|---|
Priority: | normal | Milestone: | R1 |
Component: | Servers/app_server | Version: | R1/alpha2 |
Keywords: | Cc: | ||
Blocked By: | Blocking: | ||
Platform: | All |
Description
If font with negative size used, system hang. Work only cursor(but slow) and KDL calling. Mayble need check font size value in app_server.
Attachments (1)
Change History (7)
by , 15 years ago
Attachment: | fontHang.cpp added |
---|
comment:1 by , 14 years ago
How did you change the font to a negative number? I opened the Fonts preference and it only allows a drop down box selection.
follow-up: 5 comment:3 by , 14 years ago
I compiled and tested this on a GCC4 compiled alpha3 RC Haiku at hrev41768 and I did not see the lockup. Could you test again X512, since it has been a year?
comment:4 by , 14 years ago
Works fine with GCC2 as well, on hrev41884.
The Be Developer's Guide c1997 says on page 432 that BFont SetSize() valid sizes range from less than 1.0 point through 10000 points. So perhaps we should add a range check to SetSize() to limit the valid inputs?
comment:5 by , 13 years ago
Replying to leavengood:
I compiled and tested this on a GCC4 compiled alpha3 RC Haiku at hrev41768 and I did not see the lockup. Could you test again X512, since it has been a year?
I can't reproduce bug in hrev43243. But it can be unhandled behavior and arguments check needed in app_server.
System hanging code