diff options
author | Mathieu Arnold <mat@FreeBSD.org> | 2016-06-17 23:28:04 +0000 |
---|---|---|
committer | Mathieu Arnold <mat@FreeBSD.org> | 2016-06-17 23:28:04 +0000 |
commit | 1a8a092d9fefcbd7f960c82c59802c61807867a6 (patch) | |
tree | 48e47bf661e0e5d6ed9c060e8aea683b30d4540f /print/ghostscript9-agpl-base/files/patch-base_gsmalloc.c | |
parent | - Update to 1.7.1 (diff) |
Rename all files containing a : in their filename.
While there, run make makepatch on affected ports, and rename patches
accordingly.
Sponsored by: Absolight
Notes
Notes:
svn path=/head/; revision=417041
Diffstat (limited to 'print/ghostscript9-agpl-base/files/patch-base_gsmalloc.c')
-rw-r--r-- | print/ghostscript9-agpl-base/files/patch-base_gsmalloc.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/print/ghostscript9-agpl-base/files/patch-base_gsmalloc.c b/print/ghostscript9-agpl-base/files/patch-base_gsmalloc.c new file mode 100644 index 000000000000..6651a121aeb0 --- /dev/null +++ b/print/ghostscript9-agpl-base/files/patch-base_gsmalloc.c @@ -0,0 +1,11 @@ +--- base/gsmalloc.c.orig 2015-03-30 08:21:24 UTC ++++ base/gsmalloc.c +@@ -178,7 +178,7 @@ gs_heap_alloc_bytes(gs_memory_t * mem, u + } else { + uint added = size + sizeof(gs_malloc_block_t); + +- if (mmem->limit - added < mmem->used) ++ if (added <= size || mmem->limit - added < mmem->used) + set_msg("exceeded limit"); + else if ((ptr = (byte *) Memento_label(malloc(added), cname)) == 0) + set_msg("failed"); |