pqueue corrupts long lines in message
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
pfqueue (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
I have an email message like this:
$ sudo postcat /var/spool/
...
*** MESSAGE CONTENTS /var/spool/
Received: from vagrant-
by vagrant-
for <email address hidden>; Fri, 20 Nov 2015 12:24:14 +0000 (UTC)
From: <email address hidden>
To: <email address hidden>
Message-ID: <834926492.
Subject: LogicalDOC - Request for password reset
MIME-Version: 1.0
Content-Type: multipart/mixed;
boundary=
Date: Fri, 20 Nov 2015 12:24:14 +0000 (UTC)
---
Content-Type: text/html; charset=us-ascii
Content-
LogicalDOC - Request for password reset <br/> Click here: <a href="http://
---
*** HEADER EXTRACTED /var/spool/
*** MESSAGE FILE END /var/spool/
and this is what you will see:
$ sudo pfqueue
...
│ From: <email address hidden> │
│ To: <email address hidden> │
│ Message-ID: <834926492.
│ Subject: LogicalDOC - Request for password reset │
│ MIME-Version: 1.0 │
│ Content-Type: multipart/mixed; │
│ boundary=
│ Date: Fri, 20 Nov 2015 12:24:14 +0000 (UTC) │
│ │
│ ------=
│ Content-Type: text/html; charset=us-ascii │
│ Content-
│ │
│ LogicalDOC - Request for password reset <br/> Click here: <a href="http://
│ ------=
│ *** HEADER EXTRACTED deferred/
│ *** MESSAGE FILE END deferred/
Note how the Message-ID header is truncated and has its end overwritten by the Subject header? This smells of a buffer overflow to me.
ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: pfqueue 0.5.6-8
ProcVersionSign
Uname: Linux 3.2.0-94-virtual x86_64
ApportVersion: 2.0.1-0ubuntu17.13
Architecture: amd64
Date: Fri Nov 20 12:25:00 2015
MarkForUpload: True
ProcEnviron:
LC_CTYPE=
TERM=xterm-
PATH=(custom, no user)
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: pfqueue
UpgradeStatus: No upgrade log present (probably fresh install)
@mgedmin does pqueue still corrupt long lines in message ?