stdio broken in SysV?

Clarence Dold dold at mitisft.Convergent.COM
Sun Feb 25 04:22:48 AEST 1990


in article <2010 at sauron.Columbia.NCR.COM>, wescott at micky.columbia.ncr.com (Mike Wescott) says:

> BTW the "implicit assumption" mentioned above is due to the fact that
> the array _bufendtab[] is indexed by fp->_file rather than by fp-_iob
> or built into the FILE structure itself.

This same _bufentab[] problem causes an array of difficulties if the system
NFILE is higher than NOFILES for stdio.  If there is a mix of open(2) and
fopen(3), streams can use a pointer off the end of the array, into some
unknown data space.  Might work, might not...

-- 
---
Clarence A Dold - dold at tsmiti.Convergent.COM            (408) 435-5293
               ...pyramid!ctnews!tsmiti!dold        FAX (408) 435-3105
               P.O.Box 6685, San Jose, CA 95150-6685         MS#10-007



More information about the Comp.unix.wizards mailing list