libXfont: Changes to 'master'

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Sat Aug 17 19:51:04 UTC 2019


 Makefile.am                  |    4 -
 configure.ac                 |    3 +
 src/FreeType/ftenc.c         |    4 -
 src/FreeType/ftfuncs.c       |   39 +++++++------
 src/bitmap/bdfread.c         |    9 +--
 src/bitmap/bitmaputil.c      |    3 -
 src/bitmap/bitscale.c        |    9 +--
 src/bitmap/pcfread.c         |   13 ++--
 src/bitmap/pcfwrite.c        |    3 -
 src/bitmap/snfread.c         |    5 +
 src/fc/fsconvert.c           |    3 -
 src/fc/fserve.c              |    8 +-
 src/fontfile/bitsource.c     |    3 -
 src/fontfile/catalogue.c     |    4 +
 src/fontfile/dirfile.c       |   29 +++++----
 src/fontfile/fontdir.c       |   13 ++--
 src/fontfile/fontfile.c      |   25 ++++----
 src/fontfile/fontscale.c     |    3 -
 src/fontfile/renderers.c     |    3 -
 src/stubs/atom.c             |    3 -
 src/util/fontnames.c         |    9 +--
 src/util/fontutil.c          |    9 +--
 src/util/fontxlfd.c          |  128 +++++++++++++++++++++++++------------------
 src/util/private.c           |    5 +
 src/util/reallocarray.c      |   43 ++++++++++++++
 src/util/replace.h           |   61 ++++++++++++++++++++
 src/util/strlcat.c           |   58 +++++++++++++++++++
 src/util/strlcpy.c           |   53 +++++++++++++++++
 test/utils/font-test-utils.c |    4 +
 29 files changed, 411 insertions(+), 145 deletions(-)

New commits:
commit 194cb45ceb510c3e580460919cd7e5dd31a285c8
Author: Alan Coopersmith <alan.coopersmith at oracle.com>
Date:   Sun Aug 4 11:14:39 2019 -0700

    fontxlfd.c: tell gcc that switch fallthrough is intentional
    
    Quiets:
    src/util/fontxlfd.c: In function ‘FontParseXLFDName’:
    src/util/fontxlfd.c:450:14: warning: this statement may fall through [-Wimplicit-fallthrough=]
      replaceChar = '*';
      ~~~~~~~~~~~~^~~~~
    src/util/fontxlfd.c:451:5: note: here
         case FONT_XLFD_REPLACE_ZERO:
         ^~~~
    
    Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>

commit ddbee30d3525cdd66b84056affc407601680cc29
Author: Alan Coopersmith <alan.coopersmith at oracle.com>
Date:   Sat Aug 3 19:29:05 2019 -0700

    Convert multiplying malloc calls to use mallocarray instead
    
    Introduces mallocarray as a macro calling reallocarray with a NULL
    pointer for the old allocation.
    
    Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>

commit f54470dab5b392380df61a22b4b4bef685b6cee2
Author: Alan Coopersmith <alan.coopersmith at oracle.com>
Date:   Sat Aug 3 19:09:19 2019 -0700

    Convert multiplying realloc calls to use reallocarray instead
    
    Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>

commit 27207d35d4b4bbd5d2b2c5f7e13a61ea43d04a4a
Author: Alan Coopersmith <alan.coopersmith at oracle.com>
Date:   Sat Aug 3 16:13:21 2019 -0700

    Add reallocarray fallback if not provided by libc nor libbsd
    
    Implementation copied from the Xserver
    
    Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>

commit 2178c7445a3464bd69637ad91a2dd0320a60e0df
Author: Alan Coopersmith <alan.coopersmith at oracle.com>
Date:   Sat Aug 3 18:19:11 2019 -0700

    Use bounds checking string functions everywhere
    
    Replace strcpy, strcat, sprintf with strlcpy, strlcat, snprintf
    everywhere, even where there were already bounds checks in place,
    to reduce time spent checking static analysis results.
    
    Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>

commit d4c941ea8b1dc07a14efce656bff58d31a14c985
Author: Alan Coopersmith <alan.coopersmith at oracle.com>
Date:   Sat Aug 3 16:05:21 2019 -0700

    Add strlcat & strlcpy fallbacks if not provided by libc nor libbsd
    
    Implementations copied from the Xserver
    
    Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>



More information about the xorg-commit mailing list