[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freedesktop-xorg-devel
Subject:    Re: [PATCH:libXdmcp 3/4] Ensure ARRAYofARRAY8 pointers are initialized to NULL
From:       Alan Coopersmith <alan.coopersmith () oracle ! com>
Date:       2013-09-30 15:24:05
Message-ID: 52499795.5080200 () oracle ! com
[Download RAW message or body]

On 09/30/13 07:07 AM, Mouse wrote:
>>> [...]  Has X.org given up on portability to systems where all-bits-0
>>> is not a nil pointer?  [...]
>> Yes.  [...lots of other such cases...]
>
>> Do you know of any such systems X was ever ported to?
>
> No - not that I've gone looking, mind you.  But that's hardly
> surprising; X making such assumptions makes the porting effort a lot
> higher in such cases.

Then hopefully the failure of test case I added in this patch (asserting that
the pointers == NULL) would help someone making such a port notice the problem
much more quickly than wondering why their server is failing because a random
structure containing a pointer was calloc'ed.

-- 
	-Alan Coopersmith-              alan.coopersmith@oracle.com
	 Oracle Solaris Engineering - http://blogs.oracle.com/alanc
_______________________________________________
xorg-devel@lists.x.org: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: http://lists.x.org/mailman/listinfo/xorg-devel
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic