From: Pierre Habouzit Date: Tue, 18 Dec 2007 01:44:55 GMT Subject: Re: [PATCH] Fix segfault in diff-delta.c when FLEX_ARRAY is 1 Message-ID: <20071218014455.GB14981@artemis.madism.org> In-Reply-To: <1197941997-11421-1-git-send-email-madcoder@debian.org> On Tue, Dec 18, 2007 at 01:39:57AM +0000, Pierre Habouzit wrote: > aka don't do pointer arithmetics on structs that have a FLEX_ARRAY member, > or you'll end up believing your array is 1 cell off its real address. I wonder if we could teach sparse to prevent us from using pointer arithmetics on some types… because I obviously didn't read all the git code, and I wouldn't be surprised an instance of this still remains somehwere. -- ·O· Pierre Habouzit ··O madcoder@debian.org OOO http://www.madism.org