diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2019-08-03 18:19:11 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2019-08-03 19:31:14 -0700 |
commit | 2178c7445a3464bd69637ad91a2dd0320a60e0df (patch) | |
tree | f8859af93eafcf4e321ab8170567070bcf00c057 /src/bitmap | |
parent | d4c941ea8b1dc07a14efce656bff58d31a14c985 (diff) |
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@oracle.com>
Diffstat (limited to 'src/bitmap')
-rw-r--r-- | src/bitmap/bitscale.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bitmap/bitscale.c b/src/bitmap/bitscale.c index 00adcc6..5f77635 100644 --- a/src/bitmap/bitscale.c +++ b/src/bitmap/bitscale.c @@ -1596,7 +1596,7 @@ BitmapOpenScalable (FontPathElementPtr fpe, /* Prepare font properties for the new font */ - strcpy (fontName, scaleFrom->name.name); + strlcpy (fontName, scaleFrom->name.name, sizeof(fontName)); FontParseXLFDName (fontName, vals, FONT_XLFD_REPLACE_VALUE); propCount = ComputeScaledProperties(&sourceFont->info, fontName, vals, |