From mboxrd@z Thu Jan 1 00:00:00 1970 Received: by 10.52.101.196 with SMTP id fi4cs137305vdb; Fri, 15 Apr 2011 14:14:20 -0700 (PDT) Received: by 10.52.179.201 with SMTP id di9mr602061vdc.145.1302902060194; Fri, 15 Apr 2011 14:14:20 -0700 (PDT) Return-Path: Received: from rubyforge.org (rubyforge.org [205.234.109.19]) by mx.google.com with ESMTP id x20si2589465vbl.89.2011.04.15.14.14.19; Fri, 15 Apr 2011 14:14:19 -0700 (PDT) Received-SPF: pass (google.com: domain of sup-devel-bounces@rubyforge.org designates 205.234.109.19 as permitted sender) client-ip=205.234.109.19; Authentication-Results: mx.google.com; spf=pass (google.com: domain of sup-devel-bounces@rubyforge.org designates 205.234.109.19 as permitted sender) smtp.mail=sup-devel-bounces@rubyforge.org Received: from rubyforge.org (rubyforge.org [127.0.0.1]) by rubyforge.org (Postfix) with ESMTP id D619C167816B; Fri, 15 Apr 2011 17:14:18 -0400 (EDT) Received: from sam.mediasupervision.de (sam.mediasupervision.de [80.152.3.104]) by rubyforge.org (Postfix) with ESMTP id 9568B18583AD for ; Fri, 15 Apr 2011 16:53:23 -0400 (EDT) Received: from localhost (localhost [127.0.0.1]) by sam.mediasupervision.de (Postfix) with ESMTP id C4B7B3A2286; Fri, 15 Apr 2011 22:53:21 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at sam.mediasupervision.de Received: from sam.mediasupervision.de ([127.0.0.1]) by localhost (sam.mediasupervision.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id maUyZkpb9Vfy; Fri, 15 Apr 2011 22:53:21 +0200 (CEST) Received: by sam.mediasupervision.de (Postfix, from userid 1000) id A9EDE3A22F6; Fri, 15 Apr 2011 22:53:21 +0200 (CEST) From: Gregor Hoffleit To: William Morgan In-reply-to: <1302887129-sup-7325@masanjin.net> References: <1298320404-sup-5972@masanjin.net> <1298744738-sup-631@whisper> <1298757625-sup-9756@masanjin.net> <1298762120-sup-1118@masanjin.net> <1299008245-sup-5110@whisper> <1299062215-sup-8517@sam.mediasupervision.de> <1299091467-sup-7084@masanjin.net> <1299172989-sup-8183@sam.mediasupervision.de> <1299179837-sup-4675@masanjin.net> <1302789095-sup-9782@sam.mediasupervision.de> <1302887129-sup-7325@masanjin.net> Date: Fri, 15 Apr 2011 22:53:21 +0200 Message-Id: <1302900208-sup-1898@sam.mediasupervision.de> User-Agent: Sup/git Cc: sup-devel Subject: Re: [sup-devel] sup-server revisited X-BeenThere: sup-devel@rubyforge.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: Sup developer discussion List-Id: Sup developer discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: sup-devel-bounces@rubyforge.org Errors-To: sup-devel-bounces@rubyforge.org * William Morgan [Fr Apr 15 19:16:43 +0200 2011] > Reformatted excerpts from Gregor Hoffleit's message of 2011-04-15: > > The source of this problem is in whistlepig's tokenizer. I'm hurt by an > > overflow in posarray->next and posarray->size, which are defined as > > uint16_t. I was able to fix my problem by defining these to uint32_t: > > Thanks! This is totally good. I will admit I got distracted by some > other tasks and forgot to come back to this. Maybe that's a sign I > should start using Github's vaunted issue tracker. > > What I don't understand is that the posarray stuff is all for token > offsets, isn't it? So why would the number of lines actually matter? > Large messages can overflow this but it should be in terms of tokens, > not lines. Yep. In fact the number of lines is a pure coincidence. The mail that got stuck was a logcheck report, which had 35.000 lines all starting with the current date. I guess whistlepig tried to append some 35.000 instances of "Feb" to the posarray, which lead to an infinite loop. Regards, Gregor _______________________________________________ Sup-devel mailing list Sup-devel@rubyforge.org http://rubyforge.org/mailman/listinfo/sup-devel