]> git.pld-linux.org Git - packages/WindowMaker.git/commitdiff
Security fix for WindowMaker (http://icat.nist.gov/icat.cfm?cvename=CAN-2002-1277)
authorkloczek <kloczek@pld-linux.org>
Thu, 6 Feb 2003 13:01:55 +0000 (13:01 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
http://www.heily.com/mark/code_samples/appicon_captions_maxprotect.diff

Buffer overflow in Window Maker (wmaker) 0.80.0 and earlier may allow remote
attackers to execute arbitrary code via a certain image file that is not properly
handled when Window Maker uses width and height information to allocate a buffer.

Changed files:
    appicon_captions_maxprotect.diff -> 1.1

appicon_captions_maxprotect.diff [new file with mode: 0644]

diff --git a/appicon_captions_maxprotect.diff b/appicon_captions_maxprotect.diff
new file mode 100644 (file)
index 0000000..1d6e708
--- /dev/null
@@ -0,0 +1,36 @@
+appicon_captions_maxprotect.diff  -  Don't cover captions when maximizing windows
+
+See the screenshot at:
+
+    http://www.heily.com/mark/code_samples/appicon_captions_maxprotect.png
+
+For use with the appicon_captions patch at:
+
+ http://www.heily.com/mark/code_samples/appicon_captions.diff  (patch)
+ http://www.heily.com/mark/code_samples/appicon_captions.png   (screenshot)
+
+Usage:
+
+       In WPrefs.app, disable the option entitled "When maximizing, don't cover icons"
+       Restart wmaker
+       Maximize a window with a captioned appicon
+
+---cut here---cut here-----------cut here---cut here----
+--- wm/src/actions.c.orig      Sat Feb 16 18:46:54 2002
++++ wm/src/actions.c   Sat Feb 16 19:07:16 2002
+@@ -432,6 +432,7 @@
+     WArea usableArea = wwin->screen_ptr->totalUsableArea;
+     WArea totalArea;
++    #define CAPTION_HEIGHT ( WMFontHeight(wwin->screen_ptr->clip_title_font) + 3 )
+     if (WFLAGP(wwin, no_resizable))
+       return;
+@@ -498,6 +499,7 @@
+           new_y -= wwin->frame->top_width;
+           new_height += wwin->frame->bottom_width - 1;
+       }
++      new_height -= CAPTION_HEIGHT;
+     } else {
+       new_y = wwin->frame_y;
+       new_height = wwin->frame->core->height;
This page took 0.048131 seconds and 4 git commands to generate.