Patch-ID# 103751-03
Keywords: malloc libmalloc.a 4-byte SEGV realloc memcpy
Synopsis: SunOS 5.5.1_x86: /usr/ccs/lib/libmalloc.a patch
Date: Dec/09/97

Solaris Release: 2.5.1_x86

SunOS Release: 5.5.1_x86

Unbundled Product:

Unbundled Release:

Xref: This patch available for SPARC as patch 103750

Topic: SunOS 5.5.1_x86: /usr/ccs/lib/libmalloc.a patch

BugId's fixed with this patch: 1191118 1257822 4037182

Changes incorporated in this version: 4037182

Relevant Architectures: i386

Patches accumulated and obsoleted by this patch:

Patches which conflict with this patch:

Patches required with this patch:

Obsoleted by:

Files included with this patch:

/usr/ccs/lib/libmalloc.a

Problem Description:

4037182 libmalloc(realloc()) call SEGVs in memcpy()

	In the case where a special small block is realloc'ed to a larger
	size, memcpy is called to copy the small block to the large block
	with the size of the larger block.  If the special small block is 
	near the break point unmapped memory can be accessed causing a 
	segmentation violation.

(from 103751-02)

1257822 malloc segmentation faults after mallopt(FASTMAX, 0)

(from 103751-01)

1191118 malloc from /usr/ccs/lib/libmalloc.a returns 4 byte alignment instead of 8

Patch Installation Instructions:
--------------------------------
Refer to the Install.info file within the patch for instructions on
using the generic 'installpatch' and 'backoutpatch' scripts provided
with each patch. Any other special or non-generic installation
instructions should be described below.

Special Install Instructions:
-----------------------------

None.
