Problems with widescreen (16:9) under CentOS 5 w/ xorg-x11-drv-i810-1.6.5-9.40.el5

Robert Heller heller at deepsoft.com
Mon Sep 24 14:25:07 PDT 2012


At Mon, 24 Sep 2012 16:07:26 -0400 Adam Jackson <ajax at redhat.com> wrote:

> 
> 
> On Mon, 2012-09-24 at 15:31 -0400, Robert Heller wrote:
> 
> > If <hostname> is longer than 33 characers, the server can't locate/open
> > the config file. I'm guessing someone is using a fixed size buffer (#1
> > nono!) that is not big enough.  Yes, some of use use long and meaningful
> > domain and host names...
> 
> The hostname buffer is a fixed length anyway, see man gethostname.  But
> that you're seeing truncation to 33 bytes is certainly a server bug, I
> think the MAXHOSTNAMELEN code in hw/xfree86/parser/scan.c should just be
> talking about HOST_NAME_MAX like the gethostname man page suggests.

Right.  HOST_NAME_MAX == 64 on my machine, and allowing for 'xorg.conf.'
yields 74 +1 for the NUL byte.  The buffer *ought* to be at lease 75
bytes. It *appearently* is only 44 bytes long or something like that,

> 
> - ajax
> Content-Description: This is a digitally signed message part
> 
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.11 (GNU/Linux)
> 
> iEYEABECAAYFAlBgvX4ACgkQW4otUKDs0NNOcgCguvsHTJQwCZS8y8qt3PfIjZzR
> UDMAnRmGfiy+CwWMOJy+jvb/HHgZ/fcK
> =muxj
> -----END PGP SIGNATURE-----
> 
>                                                           

-- 
Robert Heller             -- 978-544-6933 / heller at deepsoft.com
Deepwoods Software        -- http://www.deepsoft.com/
()  ascii ribbon campaign -- against html e-mail
/\  www.asciiribbon.org   -- against proprietary attachments


                                                            



More information about the xorg mailing list