Bug 1035

Summary: assert fails in telnet when given a very long line.
Product: [Retired] Red Hat Linux Reporter: Aleksey Nogin <aleksey>
Component: telnetAssignee: Florian La Roche <laroche>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 5.1   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 1999-04-07 21:06:08 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Aleksey Nogin 1999-02-04 08:12:48 UTC
When I ran

(echo "something"; cat some_file) | telnet some_host
some_port

I've got (after some time):

telnet: buffer overflow, losing data, sorry
telnet: ring.cc:132: int ringbuf::flush(): Assertion
`((size+head-tail)%size)==count' failed.
Abort (core dumped)

some_file has a line about 400Kb long.
The bug is 100% reproducable
I run RedHat 5.1 + all updates.

Comment 1 Jeff Johnson 1999-04-07 21:06:59 UTC
Fixed (by scrapping th C++ telnet client in favor of the OpenBSD
client) in telnet-0.10-25.