1
From 3c5eb8b1be544e41d2c336191bc4936300ad7543 Mon Sep 17 00:00:00 2001
2
From: bfriesen <bfriesen>
3
Date: Sun, 18 Nov 2012 17:51:52 +0000
4
Subject: [PATCH] * libtiff/tif_{unix,vms,win32}.c (_TIFFmalloc): ANSI C does
5
not require malloc() to return NULL pointer if requested allocation size is
6
zero. Assure that _TIFFmalloc does.
10
libtiff/tif_unix.c | 3 +++
11
libtiff/tif_vms.c | 3 +++
12
libtiff/tif_win32.c | 3 +++
13
4 files changed, 15 insertions(+)
15
Index: tiff-3.9.5/libtiff/tif_unix.c
16
===================================================================
17
--- tiff-3.9.5.orig/libtiff/tif_unix.c 2015-03-30 08:10:36.153348726 -0400
18
+++ tiff-3.9.5/libtiff/tif_unix.c 2015-03-30 08:10:36.149348691 -0400
21
_TIFFmalloc(tsize_t s)
24
+ return ((void *) NULL);
26
return (malloc((size_t) s));