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
13 lines
422 B
Plaintext
13 lines
422 B
Plaintext
$OpenBSD: patch-pbm_pbmtomda_c,v 1.1 2003/03/29 04:13:54 brad Exp $
|
|
--- pbm/pbmtomda.c.orig Sat May 6 05:28:11 2000
|
|
+++ pbm/pbmtomda.c Fri Mar 28 20:22:06 2003
|
|
@@ -152,6 +152,8 @@ int main(int argc, char **argv)
|
|
|
|
if (bScale) nOutRows = nInRows / 2;
|
|
else nOutRows = nInRows;
|
|
+
|
|
+ overflow_add(nOutRows, 3);
|
|
nOutRows = ((nOutRows + 3) / 4) * 4;
|
|
/* MDA wants rows a multiple of 4 */
|
|
nOutCols = nInCols / 8;
|