Return-Path: X-Original-To: rt@krbdev.MIT.EDU Received: from biscayne-one-station.mit.edu (BISCAYNE-ONE-STATION.MIT.EDU [18.7.7.80]) by krbdev.mit.edu (Postfix) with ESMTP id CC221CD08F for ; Tue, 30 Dec 2008 19:42:28 +0000 (UTC) Received: from outgoing.mit.edu (OUTGOING-AUTH.MIT.EDU [18.7.22.103]) by biscayne-one-station.mit.edu (8.13.6/8.9.2) with ESMTP id mBUJgN1D017345 for ; Tue, 30 Dec 2008 14:42:27 -0500 (EST) Received: from cathode-dark-space.mit.edu (CATHODE-DARK-SPACE.MIT.EDU [18.18.1.96]) (authenticated bits=56) (User authenticated as tlyu@ATHENA.MIT.EDU) by outgoing.mit.edu (8.13.6/8.12.4) with ESMTP id mBUJevmk024003 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Tue, 30 Dec 2008 14:40:57 -0500 (EST) Received: (from tlyu@localhost) by cathode-dark-space.mit.edu (8.12.9.20060308) id mBUJeuEr016637; Tue, 30 Dec 2008 14:40:56 -0500 (EST) To: rt@krbdev.MIT.EDU Subject: Re: [krbdev.mit.edu #6308] Alignment problem in resolver test References: From: Tom Yu Date: Tue, 30 Dec 2008 14:40:56 -0500 In-Reply-To: (Ezra Peisach via's message of "Tue, 30 Dec 2008 19:32:31 +0000 (UTC)") Message-ID: Lines: 9 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Scanned-BY: MIMEDefang 2.42 X-Spam-Flag: NO X-Spam-Score: 0.00 RT-Send-Cc: X-RT-Original-Encoding: us-ascii Content-Length: 379 "Ezra Peisach via RT" writes: > As I indicated in my initial analysis - there is one other place > gethostbyaddr is used w/o a struct in_addr - but the memory is > malloced. I am correct that malloc will return an alignment that is > compatible w/ any structure - right? It's defined to return memory with an alignment suitable for any object.