I came across this posting to the Debian mutt list. ~Kyle --I love America more than any other country in this world, and, exactly for this reason, I insist on the right to criticize her perpetually.
-- James Baldwin, Notes of a Native Son
--- Begin Message ---
- To: Debian Bug Tracking System <submit@xxxxxxxxxxxxxxx>
- Subject: Bug#400831: logic error in mutt-1.5.13/account.c
- From: Jochen Voss <voss@xxxxxxxxxx>
- Date: Tue, 28 Nov 2006 23:00:29 +0000
- Domainkey-status: no signature
- Reply-to: Jochen Voss <voss@xxxxxxxxxx>, 400831@xxxxxxxxxxxxxxx
- Resent-cc: Adeodato Simó <dato@xxxxxxxxxxxxxx>
- Resent-date: Wed, 29 Nov 2006 00:48:02 +0000
- Resent-date: Tue, 28 Nov 2006 16:48:08 -0800
- Resent-from: Jochen Voss <voss@xxxxxxxxxx>
- Resent-message-id: <handler.400831.B.116475486611505@xxxxxxxxxxxxxxx>
- Resent-sender: Debian BTS <debbugs@xxxxxxxxxxxxxxx>
- Resent-to: debian-bugs-dist@xxxxxxxxxxxxxxxx
Package: mutt Version: 1.5.13-1 Severity: normal Hi, recently I came across the following bit of code in the source file mutt-1.5.13/account.c (near the end of the file): void mutt_account_unsetpass (ACCOUNT* account) { account->flags &= !M_ACCT_PASS; } Since the flags field is used as a collection of separate bit, this is a bug in the program. Since M_ACCT_PASS equals 8, !M_ACCT_PASS equals 0 and the 'mutt_account_unsetpass' function erroneously clears all flags instead of only M_ACCT_PASS. This bug can be fixed by using bitwise negation instead of logical negation: account->flags &= ~M_ACCT_PASS; I hope this helps, Jochen -- System Information: Debian Release: 4.0 APT prefers unstable APT policy: (500, 'unstable') Architecture: i386 (i686) Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.6.18.3 Locale: LANG=en_GB.utf8, LC_CTYPE=en_GB.utf8 (charmap=UTF-8) Versions of packages mutt depends on: ii exim4 4.63-10 metapackage to ease exim MTA (v4) ii exim4-daemon-light [mail- 4.63-10 lightweight exim MTA (v4) daemon ii libc6 2.3.6.ds1-8 GNU C Library: Shared libraries ii libdb4.4 4.4.20-8 Berkeley v4.4 Database Libraries [ ii libgnutls13 1.4.4-3 the GNU TLS library - runtime libr ii libidn11 0.6.5-1 GNU libidn library, implementation ii libncursesw5 5.5-5 Shared libraries for terminal hand ii libsasl2 2.1.22.dfsg1-4 Authentication abstraction library Versions of packages mutt recommends: ii locales 2.3.6.ds1-8 GNU C Library: National Language ( ii mime-support 3.37-1 MIME files 'mime.types' & 'mailcap -- no debconf information
--- End Message ---
Attachment:
pgpQulIC72rKi.pgp
Description: PGP signature