Bug 138445
Summary: | off-by-one in slang SLsmg_draw_hline() | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Egmont Koblinger <egmont> |
Component: | slang | Assignee: | Petr Raszyk <praszyk> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 3 | CC: | davej, leonard-rh-bugzilla, sundaram |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | 1.4.9 Rel. 19 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2005-09-05 14:43:55 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Egmont Koblinger
2004-11-09 11:58:16 UTC
This hunk has already been dropped from the utf8 patch. It actually caused drawing errors for me on FC1. So this is a regression in FC3 then? I don't know if it was buggy or not in previous FC versions, but in FC3 this hunk is definitely there and it behaves buggy. Anyway, what's the origin of these utf8 patches, do you know? I'm just curious... The hunk was removed from that patch for 4.6.1-0.9 which is in RawHide. Regarding the origin of the mc UTF-8 patches please contact me per email. Egmont, the hunk is no more present in the latest mc-4.6.1-0.9, so I agree with Leonard. Since our servers are rather overloaded at the time, you can dowload the latest mc release from: http://people.redhat.com/jnovy/mc-4.6.1-0.9.src.rpm I'll appreciate any suggestions. Leonard, it was unfortunately too late to include this mc to FC3. I only checked FC3 when reporting the bug. The mc-4.6.1-0.9 is really okay in this respect. If you say slang is also fixed since FC3, then it means this bug can be closed as fixed, ain't it? :-) Comment 5: slang is not necessarily fixed already. Comment 4: Because of the quoting issues we will need an update for FC3 anyway. Then this should automatically be fixed. Adrian, sorry for the OT in this bug report. Regarding the actual issue with slang: Comment 1: Will replacing "while (n-- > 0)" with "while (--n > 0)" or "while (n-- > 1)" fix this issue? Leonard: If you write "while (--n > 0)" or "while (n-- > 1)" then it'll be okay for the n>1 case, however, if one calls SLsmg_draw_hline() with n==0, which is supposed to do nothing, then it'll still draw one character. Hence I think it's safer to stick to my original proposal. Also please note that in case a fixed slang is released as an FC3 update without a fixed mc, or a fixed mc is released without a fixed slang, then the horizontal line between the filelist and the mini status bar will be either too short or too long. So be careful with this... ... will be okay for the _ n>=1 _ case I mean... comment 2: i believe the subsequent utf8 patches after the initial debian one were hacked in-house to address line drawing badness, especially with anaconda text environment (using dietlibc) + newt + CJK. comment 6,7: while (--n > 0) is no good because n is unsigned int, which will cause n to wrap around to UINT_MAX if n == 0. (not sure if compute_clip() will change cmax and cmin to be equal to each other, causing this condition, unless you resize the window to an absurd size. but still...) irc, the double draw (one character even if n == 0) was originally done to hack around some glitchiness with CJK. whether or not the CJK issue re-appears will need to be re-tested. will push the modified version to fedora-testing potential fix (in need of lots of i18n testing) in -9... pushed to testing repository *** Bug 127700 has been marked as a duplicate of this bug. *** Issue also exists on RHEL 3 (slang-1.4.5-18). whats the status on this? Fixed in devel CURRENT RELEASE (slang 1.4.9 Rel.19). Fixed in FEDORA CORE 4 CURRENT RELEASE (slang 1.4.9. Rel. 19.fc4). It works in FEDORA CORE 3 CURRENT RELEASE (slang 1.4.9 Rel.13). We have tried to compile midnight-commander (CURRENT RELEASE in devel, FEDORA CORE 4 and FEDORA CORE 3) always with slang 1.4.9 Rel.19 (CURRENT RELEASE). The issue above could not be reproduced. |