[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/xelb 76246b4 13/42: Check `length` slot in `xcb:icccm:-
From: |
Chris Feng |
Subject: |
[elpa] externals/xelb 76246b4 13/42: Check `length` slot in `xcb:icccm:-GetProperty~reply` |
Date: |
Thu, 17 Sep 2015 23:16:41 +0000 |
branch: externals/xelb
commit 76246b4b11a18339cc5d2b472f188ad83403ce59
Author: Chris Feng <address@hidden>
Commit: Chris Feng <address@hidden>
Check `length` slot in `xcb:icccm:-GetProperty~reply`
Some program (GIMP sometimes) seems only set `length` slot to 0 while
leaving
other slots (including `value-len`) uninitialized. This commit makes sure
`length` slot is also checked.
---
xcb-icccm.el | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/xcb-icccm.el b/xcb-icccm.el
index 0fabbc8..1d178d8 100644
--- a/xcb-icccm.el
+++ b/xcb-icccm.el
@@ -123,8 +123,8 @@ according to BYTE-ARRAY.
This method automatically format the value as 8, 16 or 32 bits array."
(let ((retval (cl-call-next-method obj byte-array))
tmp)
- (with-slots (~lsb format bytes-after value-len value) obj
- (if (= 0 value-len)
+ (with-slots (~lsb length format bytes-after value-len value) obj
+ (if (or (= 0 value-len) (= 0 length))
(setf value nil) ;no available value
(setq tmp (substring value
0 ;long-offset
- [elpa] externals/xelb 2d78724 03/42: Fix shift bit for converting from keysym to Emacs event, (continued)
- [elpa] externals/xelb 2d78724 03/42: Fix shift bit for converting from keysym to Emacs event, Chris Feng, 2015/09/17
- [elpa] externals/xelb e665cb3 05/42: Update xcb-randr.el, Chris Feng, 2015/09/17
- [elpa] externals/xelb 87ebff4 06/42: Fix for 32bit platform, Chris Feng, 2015/09/17
- [elpa] externals/xelb 1916894 07/42: Fix integer overflow on 32-bit platform, Chris Feng, 2015/09/17
- [elpa] externals/xelb c042d3f 08/42: Provide more verbose message when connection failed or auth required, Chris Feng, 2015/09/17
- [elpa] externals/xelb 6a7bccc 09/42: Disable concurrency of events, Chris Feng, 2015/09/17
- [elpa] externals/xelb 11005f2 10/42: Fix ch11ng/exwm#16 (cursor size not matching), Chris Feng, 2015/09/17
- [elpa] externals/xelb cd67b51 11/42: Set the `display` slot of `xcb:connection` in `xcb:connect-to-socket`, Chris Feng, 2015/09/17
- [elpa] externals/xelb 23cb30b 12/42: Fix an emacsclient bug, Chris Feng, 2015/09/17
- [elpa] externals/xelb 946d3ed 14/42: Fix keyboard mapping update problem, Chris Feng, 2015/09/17
- [elpa] externals/xelb 76246b4 13/42: Check `length` slot in `xcb:icccm:-GetProperty~reply`,
Chris Feng <=
- [elpa] externals/xelb bf39d9b 15/42: allow key mappings without mode switch or NumLock keys, Chris Feng, 2015/09/17
- [elpa] externals/xelb 518b17a 16/42: Merge branch 'pipcet-no-num-lock', Chris Feng, 2015/09/17
- [elpa] externals/xelb 4e42bf2 04/42: Cleanup code, Chris Feng, 2015/09/17
- [elpa] externals/xelb 1cea22d 20/42: Provide a way to disable auto-padding, Chris Feng, 2015/09/17
- [elpa] externals/xelb 247d6d2 17/42: Make the manipulation of message cache more robust, Chris Feng, 2015/09/17
- [elpa] externals/xelb 677623a 19/42: Disable auto-padding for xcb-xim, Chris Feng, 2015/09/17
- [elpa] externals/xelb 7c194e7 21/42: Don't assume key events are numbers; they can be symbols., Chris Feng, 2015/09/17
- [elpa] externals/xelb f465091 22/42: It's valid for WM_NORMAL_HINTS responses only to have 15 words., Chris Feng, 2015/09/17
- [elpa] externals/xelb aaddcd9 18/42: Add implicit paddings after variable-length <list>, Chris Feng, 2015/09/17
- [elpa] externals/xelb e153829 23/42: Merge pull request #2 from pipcet/shift-keypad-fix, Chris Feng, 2015/09/17