home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 537 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.1 KB

  1. Path: comma.rhein.de!serpens!not-for-mail
  2. From: mlelstv@serpens.rhein.de (Michael van Elst)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: AS225 daemon launch?
  5. Date: 8 Jan 1996 17:45:29 +0100
  6. Organization: dis-
  7. Message-ID: <4crhn9$man@serpens.rhein.de>
  8. References: <19960106.7CB5338.12AAC@sdcc8.ucsd.edu> <mbs.46wn@adastra.cvl.va.us>
  9. NNTP-Posting-Host: serpens.rhein.de
  10.  
  11. mbs@adastra.cvl.va.us (Michael B. Smith) writes:
  12.  
  13. >socket.library makes 3 validation checks on the socket pointer
  14. >before allowing s_inherit() to succeed. It's not infallible, but
  15. >it's very unlikely that you'll be able to pick a correct value
  16. >to "fool" s_inherit().
  17.  
  18. Well... I just tried with the value (sockptr + 12345) which should
  19. be an invalid pointer. s_inherit() returned 0, but the socket
  20. descriptor was not usuable. A subsequent s_inherit with just sockptr
  21. returned a -1.
  22.  
  23. Seems that the validation checks have a bug.
  24.  
  25. Regards,
  26. -- 
  27.                                 Michael van Elst
  28.  
  29. Internet: mlelstv@serpens.rhein.de
  30.                                 "A potential Snark may lurk in every tree."
  31.