PROBLEM:	(qar 36776)		(Patch ID: OSF360-350046)
********
Problem symptom: BIND clients cannot perform lookups when given a
nameserver address that is an interface alias address on the BIND server.
The lookup hangs for a period of time, then times out.

To reproduce the problem: ifconfig an alias address for an interface on
the BIND server.  Restart the BIND server.  Enter the alias address as
the 'nameserver' address in /etc/resolv.conf on the BIND client.  Try
a name lookup (e.g. with nslookup) on the BIND client, it will hang and
eventually time out.


PROBLEM:	(QARs - 35249,35258,35271,3527)	    (Patch ID: OSF360-350080)
********	(CLDs - STLN62255,HPXQ56EAD,HPAQ6151D,HPXQ64859)

sprintf() can add one extra uninitialized character after "%*.*f" 
format strings if the precision is zero.  

One can work around this problem by initializing the sprintf() "buffer" 
with the NULL (\0) character before calling sprintf().

csh> cat test.c
 main()
 {
    double val = 1.1;
    int    fw = 5;    /* Width of field */
    int    dp = 0;    /* Decimal Places */
    char   buf[20];

    strcpy(buf, "XXXXXX");
    sprintf(buf, "%*.*f", fw, dp, val);
    puts(buf);
 }
csh>
csh> cc test.c
csh>
csh> a.out
     1X
csh>


PROBLEM:      	(QAR 40685)		(Patch ID: OSF360-350088)
********
A dataless system will hang when transitioning from single to
multi-user mode.


PROBLEM:	(QAR 41702)		(Patch ID: OSF360-350108)
********
The problem will show up only in code that is linked against, or
dlopen()'s libc_r and makes calls to functions whose names match
the pattern get*_r.

A program exhibiting this problem will often core-dump with a stack
trace which shows it was in one of the get*_r functions.


PROBLEM:        (SSRT0359X)             (Patch ID: OSF360-350128)
********
A potential security vulnerability has been discovered, where under
certain circumstances users may gain unauthorized access.

Digital has corrected this potential vulnerability.


PROBLEM:        (QAR 43844)             (Patch ID: OSF360-350133)
********
If the 2nd argument (source array) to strncat() points to a location
in memory where there is no null terminator between that location and
the 'n'th (3rd argument) subsequent byte and the memory immediately
following this 'n'th byte is not mapped, then the strncat() function may
fail with a SEGV.

$ cat foo.c
#include <stdio.h>
#include <stdlib.h>
#include <sys/mman.h>
main()
{
   int len, i;
   char string1[10];
   char *p;
   char *startp;

   len = getpagesize();
   p = (char *) valloc(len*2);
   mprotect(p+len, len, PROT_NONE);

   p+=(len-5);
   startp=p;
   for(i=0;i<5;i++)
     *p++='a';

   string1[0]='\0';
   strncat(string1, startp, 5);
   printf("string1 = %s\n",string1);
}
$ cc foo.c
$ a.out
Memory fault(coredump)


PROBLEM:        (QAR 41329)             (Patch ID: OSF360-019)
********
Fix multiple processes from adding duplicate ut_id lines in the utmp file
with duplicate ut-id keys.

This can occur on multi-processor systems when two or more users use
pututline() with the same ut_id.


PROBLEM:        ( ZUO100558 ) 		(Patch ID: OSF360-350154)
********
This patch fixes three problems:

            1)  Unsuccessful attempts to su to root were not recorded in
                syslog/auth.log.

            2)  Attempts to su to nonexistent user names were being
                recorded in syslog/auth.log.

            3)  The username recorded in syslog/auth.log was recorded as
                root rather than the users username.

        This patch applies to both base level and enhanced security.
        The error will appear differently depending on whether base
        or enhanced security has been selected.

        Beginning from a non-root account (Example: lclee)
          (1) su to root using an invalid password
          (2) su to a nonexistant account
          (3) su to root with the correct password

        Examine the file /var/adm/syslog.dated/<boottime>/auth.log
          tail /var/adm/syslog.dated/<boottime>/auth.log

        If the system is running BASE security and needs the patch
          (1) Mar  1 14:21:30 industrial su: BADSU lclee on /dev/ttyp0
          (2) Mar  1 14:23:58 industrial su: BADSU lclee on /dev/ttyp0
          (3) Mar  1 14:24:06 industrial su: SU lclee on /dev/ttyp0

        If the system is running ENHANCED security and needs the patch
          (1) no message
          (2) Mar  1 14:23:58 industrial su: BADSU root on /dev/ttyp0
          (3) Mar  1 14:24:06 industrial su: SU root on /dev/ttyp0

        If the system has the patch applied (base or enhanced)
          (1) Mar  1 14:22:43 industrial su: BADSU lclee on /dev/ttyp0
          (2) no message
          (3) Mar  1 14:24:06 industrial su: SU lclee on /dev/ttyp0

                                                                                
PROBLEM:        (QAR 43849, QAR 45014) (Patch ID: OSF360-350154)
********
        This patch fixes a problem with taso applications that set the
        malloc(3) __sbrk_override and __taso_mode tuning parameters to
        true.  Under these circumstances, malloc(3) can return ENOMEM
        before all of the taso address space is allocated.

        A brief description of the taso feature can be found in the
        cc(3) reference page where the -taso switch is documented.
        The malloc(3) tuning parameters are documented on the malloc(3)
        reference page.


PROBLEM:  (CLD MGO102122, QAR 45686) 	(Patch ID: OSF360-350217)
********
	This patch fixes a memory leak problem that occurs when
	strxfrm() or wcsxfrm() executes in a locale that allows one
	character to substitute for another during collation. An
	example is the de_DE.ISO8859-1 locale, in which "ss" is
	equvalent to and may be substituted for the German sharp s. In
	such a locale, each invocation of strxfrm() or wcsfrm() causes
	some amount of heap memory to be leaked. When you apply this
	patch, the memory leak no longer occurs.


PROBLEM:  (QAR 38929) 		(Patch ID: OSF360-350217)
********    
	This patch also fixes some incorrect behavior in the
	__do_replacement() function, which is used by both strxfrm()
	and strcoll(). Before the fix, __do_replacement() might use the
	same string pointer for the source and destination strings in
	the strcpy() function. Results were unpredictable. In addition,
	__do_replacement() did not test the output buffer size to
	determine if the resulting string would indeed fit in the
	output buffer. The patch solves all these problems.


PROBLEM:  ( QAR 45694 ) 	(Patch ID: OSF360-350222)
********
        This patch fixes a problem in the fnmatch() routine's
        single-byte and multibyte versions, which incorrectly match '?'
        to a null character.  As a result, a filename pattern like
        "???" could match not only a filename containing "aaa", but
        also one containing "a" or "aa".  Because the find command uses
        fnmatch() for filename pattern matching, there is a chance that
        data files may be removed unintentionally.  An example is as
        follows:

        % find . -name 'data???' -exec rm {} \;

        This command could inadvertently remove files named "data1",
        "data10",  and so forth.

        Note that the problem fixed by this patch occurs only when you
        use locales other than the default C locale.


PROBLEM:  ( HPAQ46E01 ) (Patch ID: OSF360-350236)
********
After patch OSF360-350128 was installed, sendmail would generate a
core dump with a segmentation fault.  The stripped sendmail does not
contain a symbol table so the core dump is hard to interpret.  To
determine whether this problem exists on your system, run the following
test: (1) On the system being tested, telnet to port 25.  (2) Enter
illegal commands and check whether sendmail generates a core dump.

                                                                   
PROBLEM:  (QAR 46198) (Patch ID: OSF360-350253)
********
The setlocale() function included in Digital UNIX releases
earlier than Version 4.0 may sometimes pass a null pointer to
the free() function. This is not harmful if site applications
use the memory allocation package (malloc() and free()
functions) bundled in the Digital UNIX C Library. However, if
site applications use a locally developed memory allocation
package or one included as part of a layered product, passing a
null pointer to free() may cause the applications to fail. To
avoid this problem, this patch installs a version of
setlocale() that checks a pointer for null before passing the
pointer to free().

                               
PROBLEM:	(BRO100738)	(Patch ID: OSF360-350279)
********
When testing applications on a BSD-style device such as /dev/tty0h, the
ttyslot function returns a number matching the index into the /var/adm/utmp
file.  However, when running the same program on an SVR4-style device such
as /dev/lat/622, the ttyslot function always returns zero.  The problem can
be indentified easily by running the sample test program included here.

Copy the following program to ttyslot_test.c:

#include <sys/ioctl.h>
#include <stdio.h>
#include <string.h>
#include <utmp.h>

main()
{
        printf("ttyslot() = %d\n", ttyslot());
        exit(1);
}

Error messages may vary, depending on which applications are being run.
When connected to a system over an SVR4-style LAT device the application
calls the ttyslot function to locate the entry in the /var/adm/utmp file.
The ttyslot function returns zero in error because it fails to match the
control terminal.  When you connect to a system over a LAT device and make
a ttyslot function call to locate the entry in the /var/adm/utmp file for
the control terminal of the current process, ttyslot() returns zero in
error because it fails to match the control terminal.


PROBLEM:	(USG-03550, QAR: 46537)	(Patch ID: OSF360-053)
********
The problem occurs when a machine has a large number (hundreds) of 
"getty" processes running and executes a shutdown. The machine may take
excessively long to shut down (i.e. half an hour).


PROBLEM:        (CLD-00805)     (Patch ID: OSF360-082-1)
********
A potential security vulnerability has been discovered in BIND
 (Domain Name Service), where under certain circumstances,
system integrity may be compromised.

This may be in the form of improper file or privilege management.

Digital has corrected this potential vulnerability.


PROBLEM:        (QAR 53135, QAR 44398)  (Patch ID: OSF360-350412)
********
This patch fixes a TCP/IP problem that can occur with programs linked
with the libc library.  These programs may return a value of (-1)
when calling the svc_tcp() function.

This problem occurs because a return value, EINTR, is ignored in the
readtcp() and writetcp() functions.  The patch involved checking for
this return before continuing a readtcp() and writetcp().


PROBLEM:        (QAR 54708, CLD MCSM71N73)      (Patch ID: OSF360-350449)
********
The printing of a string with a specified precision could result
in a segmentation fault.

In this case, the C Standard does NOT require a NULL terminated input.
                                                     

FILE(s):

/sbin/arp                               subset OSFCLINET350
CHECKSUM: 24414    272	RCSfile: arp.c          RCS: 4.2.7.4
/sbin/cfgmgr                            subset OSFBASE350
CHECKSUM: 28045    232	
/sbin/init                              subset OSFBASE350
CHECKSUM: 32074    184
/sbin/mount                             subset OSFBASE350
CHECKSUM: 44012    384	RCSfile: mount.c        RCS: 4.3.40.2
                        RCSfile: mountxcdr.c    RCS: 1.1.2.4
                        RCSfile: mountxdr.c     RCS: 4.2.7.2
                        RCSfile: mountxdr_v3.c  RCS: 1.1.2.3
/sbin/route                             subset OSFCLINET350
CHECKSUM: 47173    296	RCSfile: route.c        RCS: 4.2.7.4
/sbin/shutdown                          subset OSFBASE350
CHECKSUM: 37753    312	RCSfile: shutdown.c     RCS: 4.3.31.2
/sbin/sysconfig                         subset OSFBASE350
CHECKSUM: 03182    288	RCSfile: sysconfig.c    RCS: 4.2.12.4
/sbin/sysconfigdb                       subset OSFBASE350
CHECKSUM: 15090    272	RCSfile: sysconfigdb.c  RCS: 4.2.12.7
/sbin/umount                            subset OSFBASE350
CHECKSUM: 16350    256	RCSfile: umount.c       RCS: 4.2.15.2
/usr/bin/nslookup                       subset OSFCLINET350
CHECKSUM: 38126    128
/usr/ccs/lib/libc.a			subset OSFCMPLRS360
CHECKSUM: 04709   1649
/usr/ccs/lib/libc_r.a			subset OSFPGMR360
CHECKSUM: 38549    953
/usr/lib/nls/msg/en_US.ISO8859-1/libc.cat       subset OSFBASE350
CHECKSUM: 31768     12
/usr/lib/nls/msg/en_US.ISO8859-1/nslookup.cat   subset OSFCLINET350
CHECKSUM: 61457      7
/usr/include/netdb.h                    subset OSFPGMR350
CHECKSUM: 03768      8	RCSfile: netdb.h        RCS: 4.2.27.2
/usr/include/resolv.h                   subset OSFPGMR350
CHECKSUM: 08628      7
/usr/include/arpa/nameser.h		subset OSFPGMR350
CHECKSUM: 13142     11
/usr/shlib/libc.so                      subset OSFBASE350
CHECKSUM: 04607   1248
/usr/shlib/libc_r.so                    subset OSFBASE350
CHECKSUM: 31614    800
/usr/sbin/auditd                        subset OSFBASE350
CHECKSUM: 25073    336	RCSfile: auditd.c       RCS: 1.1.6.7
/usr/sbin/shutdown			subset OSFBASE350
CHECKSUM: 44272     32	RCSfile: shutdown.c	RCS: 4.3.31.2
/usr/sbin/ypbind                        subset OSFCLINET350
CHECKSUM: 57711    256	RCSfile: ypbind.c       RCS: 4.2.16.2
