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
21 lines
510 B
Plaintext
21 lines
510 B
Plaintext
$OpenBSD: patch-pbm_pbmtomacp_c,v 1.1 2003/03/29 04:13:54 brad Exp $
|
|
--- pbm/pbmtomacp.c.orig Thu Mar 2 21:27:33 2000
|
|
+++ pbm/pbmtomacp.c Fri Mar 28 20:22:06 2003
|
|
@@ -102,6 +102,7 @@ char *argv[];
|
|
if( !lflg )
|
|
left = 0;
|
|
|
|
+ overflow_add(left, MAX_COLS - 1);
|
|
if( rflg )
|
|
{ if( right - left >= MAX_COLS )
|
|
right = left + MAX_COLS - 1;
|
|
@@ -111,6 +112,8 @@ char *argv[];
|
|
|
|
if( !tflg )
|
|
top = 0;
|
|
+
|
|
+ overflow_add(top, MAX_LINES - 1);
|
|
|
|
if( bflg )
|
|
{ if( bottom - top >= MAX_LINES )
|