openbsd-ports/graphics/netpbm/patches/patch-pbm_pbmto4425_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

19 lines
541 B
Plaintext

$OpenBSD: patch-pbm_pbmto4425_c,v 1.1 2003/03/29 04:13:54 brad Exp $
--- pbm/pbmto4425.c.orig Sat Mar 25 17:23:19 2000
+++ pbm/pbmto4425.c Fri Mar 28 20:22:06 2003
@@ -1,4 +1,5 @@
#include "pbm.h"
+#include <string.h>
/*extern char *sys_errlist[];
char *malloc();*/
@@ -70,7 +71,7 @@ char *argv[];
xres = vmap_width * 2;
yres = vmap_height * 3;
- vmap = malloc(vmap_width * vmap_height * sizeof(char));
+ vmap = malloc3(vmap_width, vmap_height, sizeof(char));
if(vmap == NULL)
{
pm_error( "Cannot allocate memory" );