From mboxrd@z Thu Jan 1 00:00:00 1970 From: erik quanstrom Date: Thu, 9 Sep 2010 16:13:53 -0400 To: 9fans@9fans.net Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Subject: [9fans] email header screwup (and fix) Topicbox-Message-UUID: 5316d924-ead6-11e9-9d60-3106f5b1d025 lately, i've been seeing email with gigantic headers. 120 header lines are not that uncommon. unfortunately upas has sometimes inserts a blank line about (but not exactly) 4k into the file. a bit of digging, upas/send was assuming that if yacc didn't stop at a blank line, one should be inserted. unfortunately, yacc was stopping because it ran out of stack space. the hack is to increase YYMAXDEPTH. ideally, each line should be parsed independently, thus making yacc's depth depend only on the complexity of a line. nupas on sources has the fix. - erik