From 3bbced3ab549bef42f47fb28c10287b32826d1b4 Mon Sep 17 00:00:00 2001 From: Michael Vrhel Date: Tue, 26 Jan 2016 08:47:30 -0800 Subject: Fix for Bug 696514. rinkj device The rinkj device was dereferencing a NULL pointer related to the ICC device link profile that it can be set up to use. Fixing this issued and playing around with a various command line options revealed a problem in error trapping in the icc code where you could cause a crash by having a bogus device link profile specified on the command line. This fixes that crash also. --- base/gsicc_manage.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'base/gsicc_manage.h') diff --git a/base/gsicc_manage.h b/base/gsicc_manage.h index 8c2b6d737..2da149745 100644 --- a/base/gsicc_manage.h +++ b/base/gsicc_manage.h @@ -99,7 +99,7 @@ int gsicc_set_srcgtag_struct(gsicc_manager_t *icc_manager, const char* pname, int namelen); cmm_profile_t* gsicc_get_profile_handle_file(const char* pname, int namelen, gs_memory_t *mem); -void gsicc_init_profile_info(cmm_profile_t *profile); +int gsicc_init_profile_info(cmm_profile_t *profile); int gsicc_initialize_default_profile(cmm_profile_t *icc_profile); gsicc_manager_t* gsicc_manager_new(gs_memory_t *memory); cmm_profile_t* gsicc_profile_new(stream *s, gs_memory_t *memory, -- cgit v1.2.1