73a9fe0066
Cox. While these programs are not installed suid root, they are often used to prepare data for processing. These errors may permit remote attackers to cause a denial of service or execute arbitrary code in any programs or scripts that use these graphics conversion tools. http://marc.theaimsgroup.com/?l=bugtraq&m=104644687816522&w=2
14 lines
515 B
Plaintext
14 lines
515 B
Plaintext
$OpenBSD: patch-pbm_atktopbm_c,v 1.1 2003/03/29 04:13:54 brad Exp $
|
|
--- pbm/atktopbm.c.orig Sat Mar 18 23:33:36 2000
|
|
+++ pbm/atktopbm.c Fri Mar 28 20:22:06 2003
|
|
@@ -322,8 +322,7 @@ ReadATKRaster(file, rwidth, rheight, des
|
|
*rwidth = width;
|
|
*rheight = height;
|
|
rowlen = (width + 7) / 8;
|
|
- *destaddr = (unsigned char *) malloc (sizeof(unsigned char) * height *
|
|
-rowlen);
|
|
+ *destaddr = (unsigned char *) malloc3 (sizeof(unsigned char), height, rowlen);
|
|
for (row = 0; row < height; row++)
|
|
{
|
|
long c;
|