Bug 33152
Summary: | Uninitialized memory reference in lib/Xaw/TextAction.c | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | [Retired] Red Hat Linux | Reporter: | Jonathan Kamens <h1k6zn2m> | ||||||
Component: | XFree86 | Assignee: | Mike A. Harris <mharris> | ||||||
Status: | CLOSED RAWHIDE | QA Contact: | David Lawrence <dkl> | ||||||
Severity: | medium | Docs Contact: | |||||||
Priority: | medium | ||||||||
Version: | 7.0 | ||||||||
Target Milestone: | --- | ||||||||
Target Release: | --- | ||||||||
Hardware: | i386 | ||||||||
OS: | Linux | ||||||||
Whiteboard: | |||||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||||
Doc Text: | Story Points: | --- | |||||||
Clone Of: | Environment: | ||||||||
Last Closed: | 2001-03-27 13:00:41 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: | |||||||||
Attachments: |
|
Description
Jonathan Kamens
2001-03-26 02:02:35 UTC
Does this problem still exist if you try XFree86 4.0.3-3 from: ftp://people.redhat.com/mharris Yes, this is still a problem in 4.0.3-3. You can duplicate it by running under Purify or Checker or something (so that you'll catch the uninitialized memory reference), bringing up a Text widget, typing a single line of Text in the widget with a newline at the end of it (i.e., such that the newline is the last character in the widget), going to the end of that line and typing ctrl-n. I'll attach a patch for 4.0.3-3. Created attachment 13684 [details]
Patch to fix this in 4.0.3-3.
Applied in 4.0.3-4 in rawhide. Thanks for supplying all the patches you've been sending in. Very much appreciated. Sorry to cause you trouble :-), but I've concluded that the patch I submitted is not the correct way to fix this problem. The bug isn't in MoveLine, it's in ReadText. I'm attaching a new patch, which does the following: 1) Fix the ReadText functions in AsciiSrc.c and MultiSrc.c so that they return correct information when they were unable to read any data (i.e., they were asked to read data from the end of the source). 2) Fix the comments above the ReadText functions so that they correctly document their return values. 3) Fix the documentation in xc/doc/specs/Xaw so that it correctly documents what text source read functions are supposed to return. The patch I sent you doesn't do any harm, but it's also unnecessary once this new, corrected patch is applied, so you might as well back it out. Created attachment 13804 [details]
New patch for this problem
Old patch replaced with new patch. I'm going to clean up my tree and build the 4.0.3-4 release now. Thanks. |