Bug 20053

Summary: lengthen ALIGNed buffer in telnet/commands.c
Product: Base System Reporter: Alex Kapranoff <alex>
Component: binAssignee: Hajimu UMEMOTO <ume>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 5.0-CURRENT   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

Description Alex Kapranoff 2000-07-20 08:10:05 UTC
	While I was cleaning up a warning with ALIGN(buf) assigned to a pointer,
	I seem to manage to fix a possible subtle error. On 2904 line we
	get an ALIGNed pointer to a char buf[1024] and then use 1024 as
	the length of the (already ALIGNed) buffer. ALIGN can shift a
	pointer by up to ALIGNBYTES and therefore in order to get a whole of 1024
	bytes buffer we need to declare it as char buf[1024 + ALIGNBYTES].
Comment 1 Sheldon Hearn freebsd_committer freebsd_triage 2000-07-20 08:18:44 UTC
Responsible Changed
From-To: freebsd-bugs->ume

Umemoto-san, this seems to pertain to shin's rev 1.14 of 
commands.c.  Could you take a look?
Comment 2 Hajimu UMEMOTO freebsd_committer freebsd_triage 2000-07-20 16:04:01 UTC
State Changed
From-To: open->closed

Thanks!  Committed.