libFS: Changes to 'master'

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Sat May 14 17:38:18 UTC 2022


 configure.ac       |    1 +
 src/FSFontInfo.c   |    6 +++---
 src/FSFtNames.c    |    2 +-
 src/FSGetCats.c    |    2 +-
 src/FSListCats.c   |    2 +-
 src/FSListExt.c    |    2 +-
 src/FSOpenServ.c   |    2 +-
 src/FSQGlyphs.c    |    6 +++---
 src/FSQXExt.c      |    6 +++---
 src/FSQXInfo.c     |    2 +-
 src/FSlibos.h      |   14 +++++++++++++-
 src/Makefile.am    |    2 +-
 src/reallocarray.c |   43 +++++++++++++++++++++++++++++++++++++++++++
 13 files changed, 73 insertions(+), 17 deletions(-)

New commits:
commit ee33ecf31706877e1ab7dc257fadbb3eb535da50
Author: Alan Coopersmith <alan.coopersmith at oracle.com>
Date:   Sun May 8 12:35:00 2022 -0700

    Convert code to use FSmallocarray() & FSreallocarray()
    
    Provides automatic integer overflow checking in allocation size calculations
    (Though we already have explicit checks before using values provided
     over the protocol in calculations, so many were already manually checked.)
    
    Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>

commit 4a1d0977dbb6eb960ca4deedba90940bcaeecefb
Author: Alan Coopersmith <alan.coopersmith at oracle.com>
Date:   Sun May 8 12:20:58 2022 -0700

    Import reallocarray() from libX11 (originally from OpenBSD)
    
    Wrapper for realloc() that checks for overflow when multiplying
    arguments together, so we don't have to add overflow checks to
    every single call.  For documentation on usage, see:
    http://www.openbsd.org/cgi-bin/man.cgi/OpenBSD-current/man3/calloc.3
    
    Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>



More information about the xorg-commit mailing list