cvs commit: src/sys/dev/sound/pcm vchan.c

Don Lewis truckman at FreeBSD.org
Sat Feb 14 16:15:45 PST 2004


truckman    2004/02/14 16:15:44 PST

  FreeBSD src repository

  Modified files:        (Branch: RELENG_5_2)
    sys/dev/sound/pcm    vchan.c 
  Log:
  Partial MFC of revision 1.16.
  
    Change KASSERT() in feed_vchan16() into an explicit test and call to
    panic() so that the buffer overflow just beyond this point is always
    caught, even when the code is not compiled with INVARIANTS.
  
  This will cause a deterministic panic if a particular combination of
  sound hardware and client software triggers the buffer overflow in the
  vchan code.  This is better than letting the system panic in some
  unrelated part of the kernel because of heap corruption.
  
  Revision  Changes    Path
  1.13.2.1  +3 -1      src/sys/dev/sound/pcm/vchan.c


More information about the cvs-src mailing list