Bug 12780

Summary: tun code panics when 0 bytes written (PATCH included)
Product: Base System Reporter: bright <bright>
Component: kernAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Unspecified   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
tun.diff none

Description bright 1999-07-23 20:30:01 UTC
When 0 bytes are written to the tun device it panics when dereferencing a NULL pointer

this can happen in -stable (3.x) and -current (4.0)

My only concern is that possibly a routine higher up should have detected this (a write of 0 length) before it gets to tunwrite().

Fix: patch:
How-To-Repeat: Write 0 bytes to the tun device.
Comment 1 John-Mark Gurney freebsd_committer freebsd_triage 1999-07-23 21:08:38 UTC
State Changed
From-To: open->closed

patch reviewed and applied...  definately a major bug...