Summary: | "xman" may crash when opening the print dialog | ||||||
---|---|---|---|---|---|---|---|
Product: | xorg | Reporter: | Roland Mainz <roland.mainz> | ||||
Component: | App/xman | Assignee: | Roland Mainz <roland.mainz> | ||||
Status: | RESOLVED FIXED | QA Contact: | |||||
Severity: | blocker | ||||||
Priority: | high | CC: | roland.mainz | ||||
Version: | 6.8.2 | ||||||
Hardware: | All | ||||||
OS: | All | ||||||
Whiteboard: | |||||||
i915 platform: | i915 features: | ||||||
Attachments: |
|
Description
Roland Mainz
2005-04-08 23:23:53 UTC
A quick analysis shows that the "xman" code has _two_ (and not _one_) place where the |ManpageGlobals| structure gets allocated. Opening the print dialog from a real manpoage window does not cause any problems - but opening it from the "welcome" page may lead to a crash. Taking bug myself, the fix for this is quite easy... Created attachment 2360 [details] [review] Patch for 2005-04-09-trunk which uses |XtCalloc()| instead of |XtMalloc()| to clear the |ManpageGlobals| structure correctly Patch checked-in... /cvs/xorg/xc/ChangeLog,v <-- xc/ChangeLog new revision: 1.863; previous revision: 1.862 /cvs/xorg/xc/programs/xman/buttons.c,v <-- xc/programs/xman/buttons.c new revision: 1.6; previous revision: 1.5 Mailing the commit message to xorg-commit@lists.freedesktop.org... ... marking bug as FIXED. Comment on attachment 2360 [details] [review] Patch for 2005-04-09-trunk which uses |XtCalloc()| instead of |XtMalloc()| to clear the |ManpageGlobals| structure correctly Requesting approval for X11R6.8.x stable branch. The patches cures a quite common crasher in "xman"'s print dialog which may occur on opening the dialog due an uninitalised structure. The fix is to clear the structure before using it (=allocating it using |XtCalloc()| instead of |XtMalloc()|). |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.