diff options
author | marcus <marcus@FreeBSD.org> | 2003-04-19 02:06:49 +0800 |
---|---|---|
committer | marcus <marcus@FreeBSD.org> | 2003-04-19 02:06:49 +0800 |
commit | b108db671674cdbf3fcde037fa1ebab9a4897519 (patch) | |
tree | 8846737b9e10b161df1c778d481e92ccef21e20b /print | |
parent | a20ae8eea34653c6be3dae21b4ec82d83c727f92 (diff) | |
download | freebsd-ports-gnome-b108db671674cdbf3fcde037fa1ebab9a4897519.tar.gz freebsd-ports-gnome-b108db671674cdbf3fcde037fa1ebab9a4897519.tar.zst freebsd-ports-gnome-b108db671674cdbf3fcde037fa1ebab9a4897519.zip |
Add a check to avoid a NULL pointer dereference.
Approved by: sobomax (maintainer)
Diffstat (limited to 'print')
-rw-r--r-- | print/freetype2/Makefile | 1 | ||||
-rw-r--r-- | print/freetype2/files/patch-src_base_ftbdf.c | 20 |
2 files changed, 21 insertions, 0 deletions
diff --git a/print/freetype2/Makefile b/print/freetype2/Makefile index 7be3ef7c67f9..c3882b9c851f 100644 --- a/print/freetype2/Makefile +++ b/print/freetype2/Makefile @@ -7,6 +7,7 @@ PORTNAME= freetype2 PORTVERSION= 2.1.4 +PORTREVISION= 1 CATEGORIES= print MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:S,%SUBDIR%,freetype,} \ http://sunsite.cnlab-switch.ch/ftp/mirror/freetype/%SUBDIR%/ \ diff --git a/print/freetype2/files/patch-src_base_ftbdf.c b/print/freetype2/files/patch-src_base_ftbdf.c new file mode 100644 index 000000000000..cd88b5cdd9e7 --- /dev/null +++ b/print/freetype2/files/patch-src_base_ftbdf.c @@ -0,0 +1,20 @@ +--- src/base/ftbdf.c.orig Thu Apr 17 15:06:41 2003 ++++ src/base/ftbdf.c Thu Apr 17 15:07:16 2003 +@@ -85,10 +85,13 @@ + FT_Driver driver = face->driver; + BDF_GetPropertyFunc func; + +- func = (BDF_GetPropertyFunc) driver->root.clazz->get_interface( +- FT_MODULE( driver ), "get_bdf_property" ); +- if ( func ) +- error = func( face, prop_name, aproperty ); ++ if (driver->root.clazz->get_interface) ++ { ++ func = (BDF_GetPropertyFunc) driver->root.clazz->get_interface( ++ FT_MODULE( driver ), "get_bdf_property" ); ++ if ( func ) ++ error = func( face, prop_name, aproperty ); ++ } + } + return error; + } |