diff options
author | Greg Lewis <glewis@FreeBSD.org> | 2004-12-17 07:02:51 +0000 |
---|---|---|
committer | Greg Lewis <glewis@FreeBSD.org> | 2004-12-17 07:02:51 +0000 |
commit | 55f5e15a50c8a7a0434cad4e9d3a2e34aca0c753 (patch) | |
tree | c4cc388f7c7996fa61df230fa2beb40b0f0ee494 /java/jdk16/files/patch-awt_fontmanager_fontObject.cpp | |
parent | Switch from BROKEN to IGNORE to match other ports in this category. (diff) |
. Update to patchset 7.
. Fix a permissions problem with the plugins directory.
Approved by: phantom (maintainer)
Notes
Notes:
svn path=/head/; revision=124268
Diffstat (limited to 'java/jdk16/files/patch-awt_fontmanager_fontObject.cpp')
-rw-r--r-- | java/jdk16/files/patch-awt_fontmanager_fontObject.cpp | 53 |
1 files changed, 0 insertions, 53 deletions
diff --git a/java/jdk16/files/patch-awt_fontmanager_fontObject.cpp b/java/jdk16/files/patch-awt_fontmanager_fontObject.cpp deleted file mode 100644 index 3efc10e85b68..000000000000 --- a/java/jdk16/files/patch-awt_fontmanager_fontObject.cpp +++ /dev/null @@ -1,53 +0,0 @@ -$FreeBSD$ - ---- ../../j2se/src/share/native/sun/awt/font/fontmanager/fontobjects/fontObject.cpp.orig Wed Jul 7 09:33:52 2004 -+++ ../../j2se/src/share/native/sun/awt/font/fontmanager/fontobjects/fontObject.cpp Wed Jul 7 13:26:03 2004 -@@ -416,7 +416,11 @@ - fUseCount += 1; - - if (length > 0 && fFileSize > 0) { -- assert(offset < fFileSize); -+ if (offset >= fFileSize) { -+ fUseCount--; -+ return NULL; -+ } -+ - if ((offset + length) > fFileSize) - length = fFileSize - offset; - -@@ -431,13 +435,14 @@ - "fileFontObject::ReadChunk(UInt32,UInt32,void*)\n" - ); - #endif -+ fUseCount--; - return NULL; - } - - off_t err = lseek(fFile, offset, SEEK_SET); - #ifdef DEBUG - if (err == (off_t)-1) { -- fprintf(stderr, "seek(%d) returned %d\n", offset, (int) err); -+ fprintf(stderr, "seek(%ld) returned %d\n", offset, (int) err); - } - #endif - -@@ -448,7 +453,7 @@ - int tellvalue = lseek(fFile, 0, SEEK_END); - #ifdef DEBUG - fprintf(stderr, -- "<%s> of %d, ln %d, rd %d, sz %d, tell %d, err %d\n", -+ "<%s> of %ld, ln %ld, rd %d, sz %ld, tell %d, err %d\n", - (char *)fFileName, offset, length, (int)bytesRead, - fFileSize, tellvalue, (int) err); - #endif -@@ -1457,7 +1462,9 @@ - return false; - } - -- this->ReadChunk(sizeof theHeader, fFontCount * sizeof *offsets, offsets); -+ if (this->ReadChunk(sizeof theHeader, fFontCount * sizeof *offsets, offsets) == NULL) { -+ return false; -+ } - for (int i=0; i<fFontCount; i++) { - offsets[i] = GET32(offsets[i]); - } |