openbsd-ports/graphics/netpbm/patches/patch-pbm_ybmtopbm_c
brad 73a9fe0066 Several math overflow errors were found in NetPBM by Al Viro and Alan
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
2003-03-29 04:13:54 +00:00

12 lines
392 B
Plaintext

$OpenBSD: patch-pbm_ybmtopbm_c,v 1.1 2003/03/29 04:13:54 brad Exp $
--- pbm/ybmtopbm.c.orig Mon Oct 4 05:10:35 1993
+++ pbm/ybmtopbm.c Fri Mar 28 20:22:07 2003
@@ -88,6 +88,7 @@ getinit( file, colsP, rowsP, depthP, pad
pm_error( "EOF / read error" );
*depthP = 1;
+ overflow_add(*colsP, 15);
*padrightP = ( ( *colsP + 15 ) / 16 ) * 16 - *colsP;
bitsperitem = 0;
}