2 >>>> On Tue, 10 May 2005 23:59:36 +0100, Debian/IA64 non-US Build Daemon <buildd@caballero.debian.org> said:
4 > Function `malloc' implicitly converted to pointer at rgb2hsv_utils.c:186
5 > Function `malloc' implicitly converted to pointer at quantize.c:29
7 These are caused by a missing include of <stdlib.h> and, if reachable
8 at all, will cause a segfault on some arches (such as ia64) due to
9 pointer truncation (implicit "int" return value gets sign-extended to
10 64-bit pointer, which results in a crash if theh value is
13 You can use the following script to filter build logs and check for
14 these types of errors:
16 http://people.debian.org/~dannf/check-implicit-pointer-functions
18 The attached patch fixes the problems.
24 --- FeatureExtraction/rgb2hsv_utils.c~ 2002-07-22 00:09:28.000000000 -0700
25 +++ FeatureExtraction/rgb2hsv_utils.c 2005-05-11 02:18:15.000000000 -0700
32 --- FeatureExtraction/quantize.c~ 2002-07-22 00:09:28.000000000 -0700
33 +++ FeatureExtraction/quantize.c 2005-05-11 02:18:24.000000000 -0700
39 enum ppm_error hsv_quantize_ppm(PPM *im_hsv, PPM **im_quant, int **colmap, int numH, int numS, int numV, int numG) {