xdm: Changes to 'master'

Alan Coopersmith alanc at kemper.freedesktop.org
Tue Oct 29 04:26:58 CET 2013


 xdm/dm.c      |   11 ++++++-----
 xdm/session.c |    2 ++
 2 files changed, 8 insertions(+), 5 deletions(-)

New commits:
commit f5737904cb77fa546523615bf1582979b2744607
Author: Alan Coopersmith <alan.coopersmith at oracle.com>
Date:   Fri Oct 18 22:54:29 2013 -0700

    Ensure fgets read at least one byte before modifying string
    
    If a file has a \0 byte (binary file, strange encoding, corruption),
    fgets() can return a string starting with a \0 byte - check for that
    before checking to see if the byte before the \0 is a \n, so we don't
    reach back before the start of our memory buffer.
    
    Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>
    Acked-by: walter harms <wharms at bfs.de>



More information about the xorg-commit mailing list