[PATCH 1/1] randr: avoid rrGetScreenResources replying with uninitialized bytes.
Daniel Stone
daniel at fooishbar.org
Wed Mar 9 06:07:42 PST 2011
On Wed, Mar 09, 2011 at 04:02:11PM +0200, Oliver McFadden wrote:
> ==9999== Syscall param writev(vector[...]) points to uninitialised byte(s)
> ==9999== at 0x4AB7054: writev (writev.c:51)
> ==9999== by 0x5E237: _XSERVTransWritev (Xtrans.c:912)
> ==9999== by 0x6154B: FlushClient (io.c:937)
> ==9999== by 0x61FFF: FlushAllOutput (io.c:681)
> ==9999== by 0x26BF3: Dispatch (dispatch.c:453)
> ==9999== by 0x205E7: main (main.c:291)
> ==9999== Address 0x5525c70 is 632 bytes inside a block of size 4,096 alloc'd
> ==9999== at 0x48334A4: calloc (vg_replace_malloc.c:467)
> ==9999== by 0x61E23: WriteToClient (io.c:1078)
> ==9999== by 0x21517: ProcEstablishConnection (dispatch.c:3685)
> ==9999== by 0x26CEB: Dispatch (dispatch.c:432)
> ==9999== by 0x205E7: main (main.c:291)
> ==9999== Uninitialised value was created by a stack allocation
> ==9999== at 0xCA4E0: rrGetScreenResources (rrscreen.c:313)
>
> Signed-off-by: Oliver McFadden <oliver.mcfadden at nokia.com>
Reviewed-by: Daniel Stone <daniel at fooishbar.org>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.x.org/archives/xorg-devel/attachments/20110309/f48e360e/attachment.pgp>
More information about the xorg-devel
mailing list