From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: jidanni@jidanni.org Newsgroups: gmane.emacs.bugs Subject: bug#6149: 24.0.50; shell buffer overflow when input longer than 4096 bytes Date: Mon, 10 May 2010 12:14:54 +0800 Message-ID: <87aas81jgh.fsf@jidanni.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: dough.gmane.org 1273466183 13981 80.91.229.12 (10 May 2010 04:36:23 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 10 May 2010 04:36:23 +0000 (UTC) To: 6149@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon May 10 06:36:17 2010 connect(): No such file or directory Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OBKj3-0005K9-2W for geb-bug-gnu-emacs@m.gmane.org; Mon, 10 May 2010 06:36:17 +0200 Original-Received: from localhost ([127.0.0.1]:32963 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OBKZj-0005CB-Us for geb-bug-gnu-emacs@m.gmane.org; Mon, 10 May 2010 00:26:39 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1OBKZf-0005Bp-AW for bug-gnu-emacs@gnu.org; Mon, 10 May 2010 00:26:35 -0400 Original-Received: from [140.186.70.92] (port=55952 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OBKZa-0005Bc-6T for bug-gnu-emacs@gnu.org; Mon, 10 May 2010 00:26:34 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OBKZU-0005jL-29 for bug-gnu-emacs@gnu.org; Mon, 10 May 2010 00:26:30 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:52451) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OBKZT-0005jG-UG for bug-gnu-emacs@gnu.org; Mon, 10 May 2010 00:26:24 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1OBKQP-0000mr-Ma; Mon, 10 May 2010 00:17:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: jidanni@jidanni.org Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 10 May 2010 04:17:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 6149 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.12734650113013 (code B ref -1); Mon, 10 May 2010 04:17:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 10 May 2010 04:16:51 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OBKQF-0000mY-AO for submit@debbugs.gnu.org; Mon, 10 May 2010 00:16:51 -0400 Original-Received: from mx10.gnu.org ([199.232.76.166]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OBKP5-0000m5-HC for submit@debbugs.gnu.org; Mon, 10 May 2010 00:16:50 -0400 Original-Received: from lists.gnu.org ([199.232.76.165]:40976) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1OBKOq-0003iR-Qp for submit@debbugs.gnu.org; Mon, 10 May 2010 00:15:24 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1OBKOp-0008Ho-PJ for bug-gnu-emacs@gnu.org; Mon, 10 May 2010 00:15:23 -0400 Original-Received: from [140.186.70.92] (port=57086 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OBKOi-0008A7-9y for bug-gnu-emacs@gnu.org; Mon, 10 May 2010 00:15:23 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OBKOS-0004Dg-FC for bug-gnu-emacs@gnu.org; Mon, 10 May 2010 00:15:05 -0400 Original-Received: from caiajhbdcahe.dreamhost.com ([208.97.132.74]:40434 helo=homiemail-a14.g.dreamhost.com) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OBKOS-0004DP-9J for bug-gnu-emacs@gnu.org; Mon, 10 May 2010 00:15:00 -0400 Original-Received: from jidanni.org (218-163-3-173.dynamic.hinet.net [218.163.3.173]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: jidanni@jidanni.org) by homiemail-a14.g.dreamhost.com (Postfix) with ESMTPSA id 5C2BB8C06A for ; Sun, 9 May 2010 21:14:57 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Mon, 10 May 2010 00:17:01 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:36816 Archived-At: --=-=-= This is a serious bug in M-x shell. It is not a bash or dash bug. It is not a readline bug. It does not happen in xterm. It does not happen when using pipes or backticks to get the input. It only happens in M-x shell... when one gives lines longer than ~4096 characters. Actually it is not buffer overflow, but buffer truncation, with NO WARNING to the user. One day the wrong file will get removed via this mess. In GNU Emacs 24.0.50.1 (i486-pc-linux-gnu, GTK+ Version 2.20.0) of 2010-05-01 on elegiac, modified by Debian (emacs-snapshot package, version 1:20100501-1) --=-=-= Content-Type: application/octet-stream Content-Disposition: attachment; filename=input_truncation.txt.gz Content-Transfer-Encoding: base64 Content-Description: buffer truncation H4sICIKG50sAA2lucHV0X3RydW5jYXRpb24udHh0AO1YyW7jOBC991f0YeYUkBCpxfLXGJREK5xQ opqkbHdjkG+fKsoLtbg754EPQZCwVNt7tZB/fZf1u/muVT9eiFZVTRp5OnBa0DQl7FNeBmlVJ3sv NM0PKi0L2sgK5Kvz+UzgUB9yWqY5YQeh9e0MpLWpOehJaPrZKs8TliR5UoBYrKMzv/5xaXNgdE85 zT6rUemGk3QmVIu+ktYK0vqP5JBQni203AQ2Dys9Sm+Mf08PGS1Swh+nR2W7s7CSTNEfrZRPI78F d343ykHIENfMjPuhlZcpSQ4paOApZbGl2poeDpJBM8JYEn+JllUnWkmupjkpyuIrCOCXlXB/9vke p5VCe/kR0hTB9XDhbpm/8d0svnfvB+KkPUlLnOoGLSfwE5qlc+zbERhEGE0gFyyfJRxPnQcvOtAy 6LFVvQshJJShOP6ifL9A8P7JH6SE0ztgUg6pXxz1ppPkToQdhJgm4N9CSho1MFCQ0d1nJb1I35qj a2OpBWF60wfOzNI5l5mf1YMyYJwxkj2UVq7pBMh6pd2hBGKxyOJgTT24A/s7FSlUSEn2v+EOJ3mE IGFR5hGTDTTw3yuUGnU8Tt5MZmeJgh8lrs6iR4sq6KpaK+DfgYdPc8o/QxLnZs9XqeT3Yq7RjPLJ IoEcAjaQvIwUc9z8Bw9k45Qna+yn09p0HZTgXSTmq1CalU++hp+78pymm8T6kD+t6ttkotVMRW2s vAGbz9I4fLQQDsvpji76lTHOE2Um0jugIzhwmH4tGuMgOtKZZtTSoS4wPT+/8CIj+zTAmFB36kMX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