xdm: Changes to 'master'
Alan Coopersmith
alanc at kemper.freedesktop.org
Sat Mar 14 08:41:05 PDT 2015
configure.ac | 2 +-
include/dm_error.h | 2 +-
xdm/util.c | 4 ++--
3 files changed, 4 insertions(+), 4 deletions(-)
New commits:
commit 6abf2827dd4f0dc1a4972c431131de94fb978199
Author: Alan Coopersmith <alan.coopersmith at oracle.com>
Date: Thu Feb 26 23:05:24 2015 -0800
Mark LogPanic as noreturn per gcc's suggestion
error.c: In function ‘LogPanic’:
error.c:93:1: warning: function might be candidate for attribute ‘noreturn’
[-Wsuggest-attribute=noreturn]
LogPanic (const char * fmt, ...)
^
Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>
commit d26ca678071aeaf41d91985ebf8a194231667b24
Author: Alan Coopersmith <alan.coopersmith at oracle.com>
Date: Thu Feb 26 22:32:21 2015 -0800
Only free input or output to realloc, not both
In error cleanup path, check to see if realloc returned NULL,
if so, free the still valid input pointer; otherwise the input is
no longer valid, so ignore it and free the realloc output pointer.
Avoids potential double free if you run out of memory at the exact
right spot.
Introduced-by: commit d39dbde390f0f609c03dbd79f0bcc6a3486ca8a3
Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>
More information about the xorg-commit
mailing list