From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: "Jeff Johnson" Newsgroups: gmane.emacs.bugs Subject: bug#36233: 26.2; Tokenization error in rcirc parser Date: Sat, 15 Jun 2019 18:01:38 -0400 Message-ID: <884c1235-744e-43b2-b379-77b3b3b04a9f@www.fastmail.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="17753"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Cyrus-JMAP/3.1.6-663-gf46ad30-fmstable-20190607v1 Cc: jhj@trnsz.com To: 36233@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Jun 16 00:09:28 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hcGrX-0004Oj-HD for geb-bug-gnu-emacs@m.gmane.org; Sun, 16 Jun 2019 00:09:27 +0200 Original-Received: from localhost ([::1]:36734 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hcGrR-0000bd-Ts for geb-bug-gnu-emacs@m.gmane.org; Sat, 15 Jun 2019 18:09:21 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54443) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hcGrB-0000bU-Fz for bug-gnu-emacs@gnu.org; Sat, 15 Jun 2019 18:09:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hcGr9-0002CA-8h for bug-gnu-emacs@gnu.org; Sat, 15 Jun 2019 18:09:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:54022) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hcGr8-0002AX-0W for bug-gnu-emacs@gnu.org; Sat, 15 Jun 2019 18:09:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hcGr7-0002PP-QD for bug-gnu-emacs@gnu.org; Sat, 15 Jun 2019 18:09:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: "Jeff Johnson" Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 15 Jun 2019 22:09:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 36233 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.15606365189212 (code B ref -1); Sat, 15 Jun 2019 22:09:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 15 Jun 2019 22:08:38 +0000 Original-Received: from localhost ([127.0.0.1]:39333 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hcGqk-0002OV-1C for submit@debbugs.gnu.org; Sat, 15 Jun 2019 18:08:38 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:59471) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hcGkS-0001uJ-6m for submit@debbugs.gnu.org; Sat, 15 Jun 2019 18:02:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53505) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hcGkQ-0007yy-Lr for bug-gnu-emacs@gnu.org; Sat, 15 Jun 2019 18:02:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hcGkO-0007kw-GH for bug-gnu-emacs@gnu.org; Sat, 15 Jun 2019 18:02:06 -0400 Original-Received: from out2-smtp.messagingengine.com ([66.111.4.26]:58353) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hcGkN-0007eP-Uv for bug-gnu-emacs@gnu.org; Sat, 15 Jun 2019 18:02:04 -0400 Original-Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id A009720FBE; Sat, 15 Jun 2019 18:01:58 -0400 (EDT) Original-Received: from imap5 ([10.202.2.55]) by compute7.internal (MEProxy); Sat, 15 Jun 2019 18:01:58 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pobox.com; h= mime-version:message-id:date:from:to:cc:subject:content-type; s= mar2016.fm; bh=r4APgct3dt3we8/hngE3WMlpA9shsbkjiDLH/1xP6I8=; b=s Hqochpibk05RJRwCWdgdkH0xa4JuLDuslum2fuPXW3B8U/48Gv7M/ExbUxkbwa1C ZhUQ30AWFpev/3vudij0Gutw6tdA7MNZmIjkz3YFOaKEBJU+YT99+ZZvU6QESaxp F3+n5Nx9NbJiBpMSUo6k5Zn1GntP3BV2hphrRP+Cj8= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:message-id :mime-version:subject:to:x-me-proxy:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm3; bh=r4APgct3dt3we8/hngE3WMlpA9shs bkjiDLH/1xP6I8=; b=uhX1oN6kl6O6x9pfl4+ilYtZXBjocz5SAQUstKPlXqI7n /NYx1NURCqRmbfTz9YsRkuzQ8DeHdNJpnN9hedPdMYeDfIV8AJn+X1wUw9nCKVug NHSnQ1Cyf4SphasReiP8sRbd6kivdws5MShRKjWf67wFaYCMRlk5Y/uQr9OmUB/7 JdtUfYp1Bt85j3yvy5xLFCA4CUjVU/k/+JtMtyI5Kliy7Ho8nMz8Xg2wDbpQ55Ln LpexaCrpggnc2Z7Brha5bRIVDkr6oBzCiBJP+4RWPtz6vJMJP5ue++lQhN29g0kn e5jsD9QE6l9e0YLM4HfvDvlewRxTKwhk2p27wWSCA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduuddrudeigedgtdehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefofgggkfffhffvufgtsehttdertd erredtnecuhfhrohhmpedflfgvfhhfucflohhhnhhsohhnfdcuoehtrhhnshiisehpohgs ohigrdgtohhmqeenucffohhmrghinhepihhnshhpihhrtggurdhorhhgnecurfgrrhgrmh epmhgrihhlfhhrohhmpehtrhhnshiisehpohgsohigrdgtohhmnecuvehluhhsthgvrhfu ihiivgeptd X-ME-Proxy: Original-Received: by mailuser.nyi.internal (Postfix, from userid 501) id 1C8BE5C0095; Sat, 15 Jun 2019 18:01:58 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Mailman-Approved-At: Sat, 15 Jun 2019 18:08:37 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:160635 Archived-At: I'm reporting a bug that has to do with unused IRC protocol colon escaping combined with the use of certain unusual but not disallowed characters in channel keys. It should be noted that certain IRC servers that always colon escape the last token, (pedantic, but certainly valid per the IRC RFC's) often triggers a class of bugs, to most of which rcirc is immune, except when combing the use of ':' in a channel key, which leads the to the channel key being stripped of the ':' but not final argument. Example, if the server sends: "MODE #cchan +kl a:b :999" That is somehow parsed by rcirc as: "MODE +kl a b :999" Clearly incorrect - it should be "MODE +kl a:b 999". The colon *is* allowed as part of the channel key (as it is not disallowed in the RFC), except, of course, as the first character of the key, where it would break protocol. ircrc client does parse the case of "MODE #chan +k :a:b" correctly, yet fails for "MODE #chan +kl a:b :999". An example of an ircd that always escapes the final token and does not disallow colons in channel keys is inspircd, but there are many others. inspircd exactly follows the RFC - pedantically so - but does not conform to historical behavior - only standards compliance. Inspircd has a testnet at testnet.inspircd.org which can be easily used to reproduce the behavior reported. I've tested that this bugs exists and is reproducible on both Emacs 26.2 and 25.1 with the included rcirc. -- Jeff Johnson trnsz@pobox.com