Thanks for the pointer. I saw that the example use widget API through
XCreateManagedWIdget APIs.
Are this required to use the shape extension API to work?
I wanted to use the shape API without this if possible. I tried a small
example of creating a circular window which will have 2 diagonal line
are available in the git repository at:
git://gitorious.org/erkkise/libx11-fixes.git fixes-reviewed-1
Erkki Seppälä (4):
Using freed pointer e
Dereferencing possibly NULL str in call to function memcpy (Deref
assumed on the basis of 'nonnull' parameter attribute.)
Variable
Check for the NULLness of prop-name and prop-value instead of
name and value, which was checked earlier anyway. Decided against
using strdup due to curious memory allocation functions and the
rest of the xkb not using it either.
Signed-off-by: Erkki Seppälä erkki.sepp...@vincit.fi
diff --git
Here are revised versions of the fixes that got some review comments
on the list.
Erkki Seppälä (3):
Variable map goes out of scope
Using uninitialized value p-modifiers
Cannot reach dead statement return NULL;
modules/im/ximcp/imThaiFlt.c |9 +++--
src/KeyBind.c|
Small fix by using Xcalloc instead of Xmalloc
Signed-off-by: Erkki Seppälä erkki.sepp...@vincit.fi
diff --git a/src/KeyBind.c b/src/KeyBind.c
index 6d80a02..ac25ce2 100644
--- a/src/KeyBind.c
+++ b/src/KeyBind.c
@@ -996,7 +996,7 @@ XRebindKeysym (
tmp = dpy-key_bindings;
nb =
Release modifiermap before returning. Reordered code to call
XGetModifierMapping after the first return from the function.
Signed-off-by: Erkki Seppälä erkki.sepp...@vincit.fi
diff --git a/modules/im/ximcp/imThaiFlt.c b/modules/im/ximcp/imThaiFlt.c
index e0b3988..e2b0458 100644
---
It's sometimes impossible to know in advance whether an X client is
using Xlib from multiple threads or not. For example, there could be
some generic X client that acts as a plugin container. Plugins could
be loaded to the container at runtime, but the container doesn't know
whether the plugins
Hi Peter,
Thanks, that seems to be a good feature for touchscreen devices!
I've got one problem: on which tree does this patch applies? (I've tried
against the branch master of xf86-input-evdev):
error: patch failed: src/evdev.c:453
error: src/evdev.c: patch does not apply
error: patch
Here are the remaining patches of the libx11 static analysis batch
that have not yet received feedback from the list. Next up,
pull-request :).
Ander Conselvan de Oliveira (6):
Double free of pointer property_return in call to free
xcms/LRGB: Fix potential resource leak.
xcms/LRGB: Add a
Removed unused assignment
Reviewed-by: Ander Conselvan de Oliveira ander.conselvan-de-olive...@nokia.com
Signed-off-by: Erkki Seppälä erkki.sepp...@vincit.fi
---
src/xcms/cmsColNm.c |2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/xcms/cmsColNm.c
Removed unused assignment
Reviewed-by: Ander Conselvan de Oliveira ander.conselvan-de-olive...@nokia.com
Signed-off-by: Erkki Seppälä erkki.sepp...@vincit.fi
---
src/xcms/cmsColNm.c |2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/xcms/cmsColNm.c
Fixed a missing call to XFreeFont
Reviewed-by: Ander Conselvan de Oliveira ander.conselvan-de-olive...@nokia.com
Signed-off-by: Erkki Seppälä erkki.sepp...@vincit.fi
---
src/xlibi18n/XDefaultOMIF.c |5 -
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git
Fixed memory leak by adding Xfree and initializing missing_list with NULL
Reviewed-by: Ander Conselvan de Oliveira ander.conselvan-de-olive...@nokia.com
Signed-off-by: Erkki Seppälä erkki.sepp...@vincit.fi
---
modules/im/ximcp/imRmAttr.c |3 ++-
1 files changed, 2 insertions(+), 1
Fixed memory leak by adding Xfree
Reviewed-by: Ander Conselvan de Oliveira ander.conselvan-de-olive...@nokia.com
Signed-off-by: Erkki Seppälä erkki.sepp...@vincit.fi
---
src/ImUtil.c |1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/src/ImUtil.c b/src/ImUtil.c
index
Fixed by using strncpy and explicitly terminating the buffer
Reviewed-by: Ander Conselvan de Oliveira ander.conselvan-de-olive...@nokia.com
Signed-off-by: Erkki Seppälä erkki.sepp...@vincit.fi
---
src/XlibInt.c |7 ---
1 files changed, 4 insertions(+), 3 deletions(-)
diff --git
Instead of copying the value returned by get_prop_name and then releasing it,
directly use the return value of get_prop_name, which allocates memory for the
name.
Reviewed-by: Ander Conselvan de Oliveira ander.conselvan-de-olive...@nokia.com
Signed-off-by: Erkki Seppälä erkki.sepp...@vincit.fi
Fixed memory leak by adding Xfree
Signed-off-by: Erkki Seppälä erkki.sepp...@vincit.fi
---
modules/im/ximcp/imRmAttr.c |1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/modules/im/ximcp/imRmAttr.c b/modules/im/ximcp/imRmAttr.c
index ae053c9..5035df5 100644
---
Removed superfluous check for NULL target_dir; it is already handled
before this code.
Reviewed-by: Ander Conselvan de Oliveira ander.conselvan-de-olive...@nokia.com
Signed-off-by: Erkki Seppälä erkki.sepp...@vincit.fi
---
src/xlibi18n/lcFile.c |3 +--
1 files changed, 1 insertions(+), 2
Fixed memory leak by adding Xfree
Reviewed-by: Ander Conselvan de Oliveira ander.conselvan-de-olive...@nokia.com
Signed-off-by: Erkki Seppälä erkki.sepp...@vincit.fi
---
modules/im/ximcp/imRmAttr.c |3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git
Checked return value of XGetWindowProperty and return false if it fails.
Signed-off-by: Erkki Seppälä erkki.sepp...@vincit.fi
---
modules/im/ximcp/imTrX.c | 33 +
1 files changed, 21 insertions(+), 12 deletions(-)
diff --git a/modules/im/ximcp/imTrX.c
Fixed by checking for the negative return value of _Xlcwctomb and
returning 0/XLookupNone in that case.
Unfortunately the other return values for *status don't fit into the
error (which appears to indicate some internal error or running out of
memory). The other valid status codes are
From: Ander Conselvan de Oliveira ander.conselvan-de-olive...@nokia.com
info_list-watch_data was being reallocated, but the return value of the
reallocation was stored only into a local variable. This might cause some funky
behavior and crashes.
Reviewed-by: Erkki Seppälä
Fixed memory leak by adding Xfree
Reviewed-by: Ander Conselvan de Oliveira ander.conselvan-de-olive...@nokia.com
Signed-off-by: Erkki Seppälä erkki.sepp...@vincit.fi
---
modules/im/ximcp/imRm.c |2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/modules/im/ximcp/imRm.c
Fixed memory leak by adding Xfree
Reviewed-by: Ander Conselvan de Oliveira ander.conselvan-de-olive...@nokia.com
Signed-off-by: Erkki Seppälä erkki.sepp...@vincit.fi
---
modules/im/ximcp/imRm.c |2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/modules/im/ximcp/imRm.c
From: Ander Conselvan de Oliveira ander.conselvan-de-olive...@nokia.com
Fixed by zero'ing conv on allocation. Then close_converter works properly.
Reviewed-by: Erkki Seppälä erkki.sepp...@vincit.fi
Signed-off-by: Ander Conselvan de Oliveira
ander.conselvan-de-olive...@nokia.com
Signed-off-by:
On Mon, Jan 31, 2011 at 12:46:56 +0200, Rami Ylimäki wrote:
This change makes it possible to guard a system against a missing
XInitThreads call in X clients. One might argue that this is a client
problem and that all X clients should call XInitThreads if it's
possible that they could use Xlib
Zero-initialized new
Reviewed-by: Ander Conselvan de Oliveira ander.conselvan-de-olive...@nokia.com
Signed-off-by: Erkki Seppälä erkki.sepp...@vincit.fi
---
src/xlibi18n/lcGeneric.c |2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/xlibi18n/lcGeneric.c
The NEWTABLE macro missed freeing its allocated memory on subsequent memory
allocation errors. Added call to Xfree.
Reviewed-by: Ander Conselvan de Oliveira ander.conselvan-de-olive...@nokia.com
Signed-off-by: Erkki Seppälä erkki.sepp...@vincit.fi
---
src/Xrm.c |4 +++-
1 files changed, 3
From: Ander Conselvan de Oliveira ander.conselvan-de-olive...@nokia.com
The rest of the code uses goto's to free memory allocated later
and prevent memory leaks, but there were several paths were
property_return was free'd just before a goto.
Reviewed-by: Erkki Seppälä erkki.sepp...@vincit.fi
From: Ander Conselvan de Oliveira ander.conselvan-de-olive...@nokia.com
property_return was not free'd if the allocation of pRedTbl failed.
Reviewed-by: Erkki Seppälä erkki.sepp...@vincit.fi
Signed-off-by: Ander Conselvan de Oliveira
ander.conselvan-de-olive...@nokia.com
Signed-off-by: Erkki
Fixed the handling of the extremely unlikely situation of fstat failing
Reviewed-by: Ander Conselvan de Oliveira ander.conselvan-de-olive...@nokia.com
Signed-off-by: Erkki Seppälä erkki.sepp...@vincit.fi
---
src/Xrm.c |6 ++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git
Removed superfluous check for NULL target_dir; it is already handled
before this code.
Reviewed-by: Ander Conselvan de Oliveira ander.conselvan-de-olive...@nokia.com
Signed-off-by: Erkki Seppälä erkki.sepp...@vincit.fi
---
src/xlibi18n/lcFile.c |3 +--
1 files changed, 1 insertions(+), 2
On Mon, Jan 31, 2011 at 13:07:07 +0200, Erkki Seppälä wrote:
Here are the remaining patches of the libx11 static analysis batch
that have not yet received feedback from the list. Next up,
pull-request :).
Can you make the Subject of the patches something understandable?
Having the output of
From: Ander Conselvan de Oliveira ander.conselvan-de-olive...@nokia.com
In the case were a first call to XGetWindowProperty succeeds but the
initial value of len is smaller than the total length of the property,
prop_return is freed and another call XGWP is made. If that subsequent
call fails,
Here are the remaining patches of the libx11 static analysis batch
that have not yet received feedback from the list. This batch has the
comments fixed so that the actual change is first, while the diagnosis
from the tool follows, thus making git shortlog more useful.
Next up, pull-request :).
Pointer pBuf returned from fgets(buf, 256, stream) is never used
Reviewed-by: Ander Conselvan de Oliveira ander.conselvan-de-olive...@nokia.com
Signed-off-by: Erkki Seppälä erkki.sepp...@vincit.fi
---
src/xcms/cmsColNm.c |2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git
Pointer pBuf returned from fgets(buf, 256, stream) is never used
Reviewed-by: Ander Conselvan de Oliveira ander.conselvan-de-olive...@nokia.com
Signed-off-by: Erkki Seppälä erkki.sepp...@vincit.fi
---
src/xcms/cmsColNm.c |2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git
Variable table goes out of scope
Reviewed-by: Ander Conselvan de Oliveira ander.conselvan-de-olive...@nokia.com
Signed-off-by: Erkki Seppälä erkki.sepp...@vincit.fi
---
src/Xrm.c |4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/src/Xrm.c b/src/Xrm.c
index
Variable fs not freed or pointed-to in function get_prop_name
Reviewed-by: Ander Conselvan de Oliveira ander.conselvan-de-olive...@nokia.com
Signed-off-by: Erkki Seppälä erkki.sepp...@vincit.fi
---
src/xlibi18n/XDefaultOMIF.c |5 -
1 files changed, 4 insertions(+), 1 deletions(-)
diff
Tracked variable size was passed to a negative sink.
Reviewed-by: Ander Conselvan de Oliveira ander.conselvan-de-olive...@nokia.com
Signed-off-by: Erkki Seppälä erkki.sepp...@vincit.fi
---
src/Xrm.c |6 ++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/src/Xrm.c
Variable colormap_ret goes out of scope
Reviewed-by: Ander Conselvan de Oliveira ander.conselvan-de-olive...@nokia.com
Signed-off-by: Erkki Seppälä erkki.sepp...@vincit.fi
---
modules/im/ximcp/imRm.c |2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git
From: Ander Conselvan de Oliveira ander.conselvan-de-olive...@nokia.com
Double free of pointer property_return in call to free
Reviewed-by: Erkki Seppälä erkki.sepp...@vincit.fi
Signed-off-by: Ander Conselvan de Oliveira
ander.conselvan-de-olive...@nokia.com
Signed-off-by: Erkki Seppälä
Variable colormap_ret goes out of scope
Signed-off-by: Erkki Seppälä erkki.sepp...@vincit.fi
---
modules/im/ximcp/imRmAttr.c |1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/modules/im/ximcp/imRmAttr.c b/modules/im/ximcp/imRmAttr.c
index ae053c9..5035df5 100644
---
Variable image goes out of scope
Reviewed-by: Ander Conselvan de Oliveira ander.conselvan-de-olive...@nokia.com
Signed-off-by: Erkki Seppälä erkki.sepp...@vincit.fi
---
src/ImUtil.c |1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/src/ImUtil.c b/src/ImUtil.c
index
Variable colormap_ret goes out of scope
Reviewed-by: Ander Conselvan de Oliveira ander.conselvan-de-olive...@nokia.com
Signed-off-by: Erkki Seppälä erkki.sepp...@vincit.fi
---
modules/im/ximcp/imRmAttr.c |3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git
Possible overrun of 8192 byte fixed size buffer buffer by copying ext-name
without length checking
Reviewed-by: Ander Conselvan de Oliveira ander.conselvan-de-olive...@nokia.com
Signed-off-by: Erkki Seppälä erkki.sepp...@vincit.fi
---
src/XlibInt.c |7 ---
1 files changed, 4
From: Ander Conselvan de Oliveira ander.conselvan-de-olive...@nokia.com
Using uninitialized value conv-state in call to function close_converter
Reviewed-by: Erkki Seppälä erkki.sepp...@vincit.fi
Signed-off-by: Ander Conselvan de Oliveira
ander.conselvan-de-olive...@nokia.com
Signed-off-by:
Using uninitialized value error.resourceID in call to function _XError
Reviewed-by: Erkki Seppälä erkki.sepp...@vincit.fi
Signed-off-by: Ander Conselvan de Oliveira
ander.conselvan-de-olive...@nokia.com
Signed-off-by: Erkki Seppälä erkki.sepp...@vincit.fi
---
src/GetProp.c |2 +-
1 files
Using uninitialized value new
Reviewed-by: Ander Conselvan de Oliveira ander.conselvan-de-olive...@nokia.com
Signed-off-by: Erkki Seppälä erkki.sepp...@vincit.fi
---
src/xlibi18n/lcGeneric.c |2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/xlibi18n/lcGeneric.c
From: Ander Conselvan de Oliveira ander.conselvan-de-olive...@nokia.com
Variable wd_array goes out of scope Value wd_array is overwritten in
wd_array = (XPointer*)realloc((char*)info_list-watch_data,
(((dpy-watcher_count + 1) * 4U == 0U) ? 1U : ((dpy-watcher_count + 1) * 4U)))
Reviewed-by:
Return value of XGetWindowProperty(im-core.display, spec-lib_connect_wid,
prop, 0L, (length + bytes_after_ret + 3UL) / 4UL, 1, 0UL, type_ret,
format_ret, nitems, bytes_after_ret, prop_ret) is not checked
Signed-off-by: Erkki Seppälä erkki.sepp...@vincit.fi
---
modules/im/ximcp/imTrX.c | 33
From: Ander Conselvan de Oliveira ander.conselvan-de-olive...@nokia.com
xcms/LRGB: Add a label for freeing property_return.
Reviewed-by: Erkki Seppälä erkki.sepp...@vincit.fi
Signed-off-by: Ander Conselvan de Oliveira
ander.conselvan-de-olive...@nokia.com
Signed-off-by: Erkki Seppälä
From: Ander Conselvan de Oliveira ander.conselvan-de-olive...@nokia.com
xcms/LRGB: Fix potential resource leak.
Reviewed-by: Erkki Seppälä erkki.sepp...@vincit.fi
Signed-off-by: Ander Conselvan de Oliveira
ander.conselvan-de-olive...@nokia.com
Signed-off-by: Erkki Seppälä
Variable prop_name not freed or pointed-to in function strlen
Reviewed-by: Ander Conselvan de Oliveira ander.conselvan-de-olive...@nokia.com
Signed-off-by: Erkki Seppälä erkki.sepp...@vincit.fi
---
src/xlibi18n/XDefaultOMIF.c |4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
diff
Cannot reach dead expression 0U inside statement if (1U + (target_dir ?
strl...
Reviewed-by: Ander Conselvan de Oliveira ander.conselvan-de-olive...@nokia.com
Signed-off-by: Erkki Seppälä erkki.sepp...@vincit.fi
---
src/xlibi18n/lcFile.c |3 +--
1 files changed, 1 insertions(+), 2
Cannot reach dead expression 0U inside statement if (1U + (target_dir ?
strl...
Reviewed-by: Ander Conselvan de Oliveira ander.conselvan-de-olive...@nokia.com
Signed-off-by: Erkki Seppälä erkki.sepp...@vincit.fi
---
src/xlibi18n/lcFile.c |3 +--
1 files changed, 1 insertions(+), 2
a negative value was passed to memcpy
Unfortunately the other return values for *status don't fit into the
error (which appears to indicate some internal error or running out of
memory). The other valid status codes are XBufferOverflow,
XLookupNone, XLookupChars, XLookupKeySym, and XLookupBoth.
Variable missing_list goes out of scope
Reviewed-by: Ander Conselvan de Oliveira ander.conselvan-de-olive...@nokia.com
Signed-off-by: Erkki Seppälä erkki.sepp...@vincit.fi
---
modules/im/ximcp/imRmAttr.c |3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git
On 01/31/2011 01:13 PM, ext Julien Cristau wrote:
On Mon, Jan 31, 2011 at 12:46:56 +0200, Rami Ylimäki wrote:
This change makes it possible to guard a system against a missing
XInitThreads call in X clients. One might argue that this is a client
problem and that all X clients should call
Two changes are introduced:
- Ignore and skip a benchmark if XGetImage would generate a BadMatch error.
- Allow default test window size to be redefined with extra options.
Rami Ylimäki (3):
Let window size to be variable instead of constant.
Let user to override the default window
Signed-off-by: Rami Ylimäki rami.ylim...@vincit.fi
---
do_arcs.c| 12 ++--
do_blt.c | 36 ++--
do_complex.c |8
do_lines.c | 16
do_movewin.c | 10 +-
do_rects.c |4 ++--
do_segs.c| 12
Signed-off-by: Rami Ylimäki rami.ylim...@vincit.fi
---
x11perf.c | 19 ++-
1 files changed, 18 insertions(+), 1 deletions(-)
diff --git a/x11perf.c b/x11perf.c
index 39ab493..29ca1ec 100644
--- a/x11perf.c
+++ b/x11perf.c
@@ -497,6 +497,8 @@ usage(void)
-rop rop0 rop1 ...
Signed-off-by: Rami Ylimäki rami.ylim...@vincit.fi
---
do_blt.c | 10 ++
1 files changed, 10 insertions(+), 0 deletions(-)
diff --git a/do_blt.c b/do_blt.c
index 4be2836..fae9e1d 100644
--- a/do_blt.c
+++ b/do_blt.c
@@ -208,6 +208,16 @@ InitCopyPix(XParms xp, Parms p, int reps)
int
On Mon, Jan 31, 2011 at 15:12:29 +0200, Tiago Vignatti wrote:
On 01/31/2011 01:13 PM, ext Julien Cristau wrote:
On Mon, Jan 31, 2011 at 12:46:56 +0200, Rami Ylimäki wrote:
This change makes it possible to guard a system against a missing
XInitThreads call in X clients. One might argue that
On 01/31/2011 04:06 PM, ext Julien Cristau wrote:
On Mon, Jan 31, 2011 at 15:12:29 +0200, Tiago Vignatti wrote:
On 01/31/2011 01:13 PM, ext Julien Cristau wrote:
On Mon, Jan 31, 2011 at 12:46:56 +0200, Rami Ylimäki wrote:
This change makes it possible to guard a system against a missing
On 01/31/2011 04:14 PM, Tiago Vignatti wrote:
On 01/31/2011 04:06 PM, ext Julien Cristau wrote:
On Mon, Jan 31, 2011 at 15:12:29 +0200, Tiago Vignatti wrote:
On 01/31/2011 01:13 PM, ext Julien Cristau wrote:
On Mon, Jan 31, 2011 at 12:46:56 +0200, Rami Ylimäki wrote:
This change makes it
Would it be possible to guard against misbehaving applications by
making it possible to configure libX11 with a dummy mutex?
typedef int dummy_mutex;
void lock(int *m) { assert(++(*m) == 1); };
void unlock(int *m) { *m = 0 };
It's not perfect but I guess it would be better than crashing
Add this line just before the event loop:
XMapWindow(dsp, win);
Pat
---
On Mon, Jan 31, 2011 at 2:05 AM, Prasanta Sadhukhan
psadhuk...@gmail.com wrote:
Thanks for the pointer. I saw that the example use widget API through
XCreateManagedWIdget APIs.
Are this required to use the shape
On Mon, 2011-01-31 at 15:48 +0200, Rami Ylimäki wrote:
Signed-off-by: Rami Ylimäki rami.ylim...@vincit.fi
---
do_blt.c | 10 ++
1 files changed, 10 insertions(+), 0 deletions(-)
diff --git a/do_blt.c b/do_blt.c
index 4be2836..fae9e1d 100644
--- a/do_blt.c
+++ b/do_blt.c
@@
On 01/31/11 02:46 AM, Rami Ylimäki wrote:
It's sometimes impossible to know in advance whether an X client is
using Xlib from multiple threads or not. For example, there could be
some generic X client that acts as a plugin container. Plugins could
be loaded to the container at runtime, but the
Please include this in 1.9.4 if possible
commit e06fa804009798ea95efa8babaabb0228dfdfe65
See https://bugs.freedesktop.org/show_bug.cgi?id=24703
On Wed, Dec 22, 2010 at 11:04:10AM +0100, Michel Dänzer wrote:
From: Michel Dänzer daen...@vmware.com
Fixes
On Mon, Jan 31, 2011 at 09:40:54PM +0100, Matthieu Herrb wrote:
Please include this in 1.9.4 if possible
commit e06fa804009798ea95efa8babaabb0228dfdfe65
See https://bugs.freedesktop.org/show_bug.cgi?id=24703
Hmm. I didn't realize it was already commited.
I checked an out of date tree.
On 01/31/11 01:38 AM, Erkki Seppälä wrote:
git://gitorious.org/erkkise/libx11-fixes.git fixes-reviewed-1
Merged to ssh://git.freedesktop.org/git/xorg/lib/libX11
0f11c22..e994ab2 master - master
--
-Alan Coopersmith-alan.coopersm...@oracle.com
Oracle Solaris
On 01/31/11 02:03 AM, Erkki Seppälä wrote:
Small fix by using Xcalloc instead of Xmalloc
Signed-off-by: Erkki Seppälä erkki.sepp...@vincit.fi
diff --git a/src/KeyBind.c b/src/KeyBind.c
index 6d80a02..ac25ce2 100644
--- a/src/KeyBind.c
+++ b/src/KeyBind.c
@@ -996,7 +996,7 @@
On 01/31/11 02:03 AM, Erkki Seppälä wrote:
Check for the NULLness of prop-name and prop-value instead of
name and value, which was checked earlier anyway. Decided against
using strdup due to curious memory allocation functions and the
rest of the xkb not using it either.
Signed-off-by:
buttons_return-mask is allocated by the library and must be freed by the
caller to avoid leaking.
Reported-by: Matthias Clasen mcla...@redhat.com
Signed-off-by: Peter Hutterer peter.hutte...@who-t.net
---
bonus points to me for great API design...
man/XIQueryPointer.txt |3 +++
1 files
On Mon, Jan 31, 2011 at 11:48:08AM +0100, Benjamin Tissoires wrote:
Thanks, that seems to be a good feature for touchscreen devices!
I've got one problem: on which tree does this patch applies? (I've
tried against the branch master of xf86-input-evdev):
error: patch failed: src/evdev.c:453
Keith,
Please pull the changes below to fix software-rastered aiglx on non-dri
systems.
Thanks,
Samuel
The following changes since commit be3be7580b6f6fd2f7fa4d4abfe5e1ab19470223:
Merge remote branch 'ajax/for-keithp' (2011-01-20 21:21:21 -0800)
are available in the git repository at:
You should add a line like this too:
XSelectInput(dsp, win, ExposureMask|ButtonPressMask|ButtonReleaseMask );
On Mon, Jan 31, 2011 at 9:39 AM, Pat Kane pekan...@gmail.com wrote:
Add this line just before the event loop:
XMapWindow(dsp, win);
Pat
---
On Mon, Jan 31, 2011 at 2:05 AM,
On 01/31/11 04:01 AM, Erkki Seppälä wrote:
Here are the remaining patches of the libx11 static analysis batch
that have not yet received feedback from the list. This batch has the
comments fixed so that the actual change is first, while the diagnosis
from the tool follows, thus making git
On 01/31/11 04:01 AM, Erkki Seppälä wrote:
Variable fs not freed or pointed-to in function get_prop_name
Reviewed-by: Ander Conselvan de Oliveira
ander.conselvan-de-olive...@nokia.com
Signed-off-by: Erkki Seppälä erkki.sepp...@vincit.fi
---
src/xlibi18n/XDefaultOMIF.c |5 -
1
On 01/31/11 04:01 AM, Erkki Seppälä wrote:
Pointer pBuf returned from fgets(buf, 256, stream) is never used
Reviewed-by: Ander Conselvan de Oliveira
ander.conselvan-de-olive...@nokia.com
Signed-off-by: Erkki Seppälä erkki.sepp...@vincit.fi
---
src/xcms/cmsColNm.c |2 +-
1 files
On 01/31/11 04:01 AM, Erkki Seppälä wrote:
Pointer pBuf returned from fgets(buf, 256, stream) is never used
Reviewed-by: Ander Conselvan de Oliveira
ander.conselvan-de-olive...@nokia.com
Signed-off-by: Erkki Seppälä erkki.sepp...@vincit.fi
---
src/xcms/cmsColNm.c |2 +-
1 files
On 01/31/11 04:01 AM, Erkki Seppälä wrote:
Using uninitialized value new
Reviewed-by: Ander Conselvan de Oliveira
ander.conselvan-de-olive...@nokia.com
Signed-off-by: Erkki Seppälä erkki.sepp...@vincit.fi
---
src/xlibi18n/lcGeneric.c |2 +-
1 files changed, 1 insertions(+), 1
On 01/31/11 04:01 AM, Erkki Seppälä wrote:
Possible overrun of 8192 byte fixed size buffer buffer by copying
ext-name without length checking
Reviewed-by: Ander Conselvan de Oliveira
ander.conselvan-de-olive...@nokia.com
Signed-off-by: Erkki Seppälä erkki.sepp...@vincit.fi
---
On 01/29/2011 05:23 PM, Gaetan Nadon wrote:
The primary use will be for DocBook/XML cross links database generation.
XSLT (Extensible Stylesheet Language Transformations) is a declarative,
XML-based language used for the transformation of XML documents.
The xsltproc command line tool is for
Thanks. I added the following lines as told. Now I am getting a window but
1) it is not circular shaped although I am using X shape extension API
2) it is not accepting any input. XNextEvent() still hangs
attached is the modified program. Anything else I need to add
Also, can anyone help me to
On 01/31/11 04:01 AM, Erkki Seppälä wrote:
Variable colormap_ret goes out of scope
Reviewed-by: Ander Conselvan de Oliveira
ander.conselvan-de-olive...@nokia.com
Signed-off-by: Erkki Seppälä erkki.sepp...@vincit.fi
---
modules/im/ximcp/imRmAttr.c |3 ++-
1 files changed, 2
On 01/31/11 04:01 AM, Erkki Seppälä wrote:
Variable missing_list goes out of scope
Reviewed-by: Ander Conselvan de Oliveira
ander.conselvan-de-olive...@nokia.com
Signed-off-by: Erkki Seppälä erkki.sepp...@vincit.fi
---
modules/im/ximcp/imRmAttr.c |3 ++-
1 files changed, 2
On 01/31/11 04:02 AM, Erkki Seppälä wrote:
Variable colormap_ret goes out of scope
Signed-off-by: Erkki Seppälä erkki.sepp...@vincit.fi
---
modules/im/ximcp/imRmAttr.c |1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/modules/im/ximcp/imRmAttr.c
On 01/31/11 04:02 AM, Erkki Seppälä wrote:
Variable colormap_ret goes out of scope
Reviewed-by: Ander Conselvan de Oliveira
ander.conselvan-de-olive...@nokia.com
Signed-off-by: Erkki Seppälä erkki.sepp...@vincit.fi
---
modules/im/ximcp/imRm.c |2 ++
1 files changed, 2 insertions(+),
On 01/31/11 04:02 AM, Erkki Seppälä wrote:
Variable colormap_ret goes out of scope
Reviewed-by: Ander Conselvan de Oliveira
ander.conselvan-de-olive...@nokia.com
Signed-off-by: Erkki Seppälä erkki.sepp...@vincit.fi
---
modules/im/ximcp/imRm.c |2 ++
1 files changed, 2 insertions(+),
On 01/31/11 04:02 AM, Erkki Seppälä wrote:
Variable image goes out of scope
Reviewed-by: Ander Conselvan de Oliveira
ander.conselvan-de-olive...@nokia.com
Signed-off-by: Erkki Seppälä erkki.sepp...@vincit.fi
---
src/ImUtil.c |1 +
1 files changed, 1 insertions(+), 0 deletions(-)
On 01/31/11 04:02 AM, Erkki Seppälä wrote:
Subject: [PATCH v2 12/25] [libx11] Instead of copying the value returned by
get_prop_name and then releasing it, directly use the return value of
get_prop_name, which allocates memory for the name.
Variable prop_name not freed or pointed-to in function
On 01/31/11 11:42 PM, Alan Coopersmith wrote:
Plus this would solve the unused variable prop_name warning that your patch
would introduce.
Never mind that bit, your patch still used prop_name, just as an extra variable
to copy through.
--
-Alan Coopersmith-
You could shorten the summary to:
Handle the extremely unlikely situation of fstat failing
since we hope most patches fix something, it's not always necessary to add in
Fixed the... when other verbs can work.
On 01/31/11 04:02 AM, Erkki Seppälä wrote:
Tracked variable size was passed to a
On 01/31/11 04:02 AM, Erkki Seppälä wrote:
Variable table goes out of scope
Reviewed-by: Ander Conselvan de Oliveira
ander.conselvan-de-olive...@nokia.com
Signed-off-by: Erkki Seppälä erkki.sepp...@vincit.fi
---
src/Xrm.c |4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
On 01/31/11 04:02 AM, Erkki Seppälä wrote:
From: Ander Conselvan de Oliveira ander.conselvan-de-olive...@nokia.com
xcms/LRGB: Fix potential resource leak.
Reviewed-by: Erkki Seppälä erkki.sepp...@vincit.fi
Signed-off-by: Ander Conselvan de Oliveira
ander.conselvan-de-olive...@nokia.com
98 matches
Mail list logo