-
Notifications
You must be signed in to change notification settings - Fork 739
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
x11-toolkits/open-motif*: MenuShell: computing position uses RC_Type(…
…) expecting RowColumn To compute the position of a menu to display, in some cases the position is computed invoking RC_Type() that expects a RowColumn widget. One case was not verifying this hence leading to coredump. Obtained from: https://sourceforge.net/p/motif/code/merge-requests/5/
- Loading branch information
Showing
4 changed files
with
22 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
x11-toolkits/open-motif-devel/files/patch-lib_Xm_MenuShell.c
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- lib/Xm/MenuShell.c.orig 2023-02-15 16:42:34.000000000 -0800 | ||
+++ lib/Xm/MenuShell.c 2023-12-04 15:33:32.718284000 -0800 | ||
@@ -988,6 +988,7 @@ | ||
if (bottomEdgeOfMenu >= (Position)dispHeight) | ||
{ | ||
if (pulldown_button && XtParent(pulldown_button) && | ||
+ XmIsRowColumn(XtParent(pulldown_button)) && | ||
(RC_Type(XtParent(pulldown_button)) == XmMENU_BAR)) | ||
{ | ||
Position y_temp = *y; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- lib/Xm/MenuShell.c.orig 2017-08-16 17:38:43.000000000 -0700 | ||
+++ lib/Xm/MenuShell.c 2023-12-04 15:33:35.350531000 -0800 | ||
@@ -988,6 +988,7 @@ | ||
if (bottomEdgeOfMenu >= (Position)dispHeight) | ||
{ | ||
if (pulldown_button && XtParent(pulldown_button) && | ||
+ XmIsRowColumn(XtParent(pulldown_button)) && | ||
(RC_Type(XtParent(pulldown_button)) == XmMENU_BAR)) | ||
{ | ||
Position y_temp = *y; |