Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 313017 - mail-mta/ssmtp-2.62-r7: segfaults if password contains certain characters
Summary: mail-mta/ssmtp-2.62-r7: segfaults if password contains certain characters
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Net-Mail Packages
URL: http://bugs.debian.org/cgi-bin/bugrep...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-04-03 19:54 UTC by Joel Koglin
Modified: 2011-01-19 13:51 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Joel Koglin 2010-04-03 19:54:31 UTC
If you configure ssmtp with a password like Secure#Password! it will segfault when trying to send mail.

Reproducible: Always

Steps to Reproduce:
1. emerge ssmtp
2. edit /etc/ssmtp/ssmtp.conf
3. set AuthPass=Secure#Password!
4. configure the rest of ssmtp to be able to send mail somewhere
5. run /usr/sbin/ssmtp youremail@mail.com
6. type your message followed by <ENTER> <CTRL+D>

Actual Results:  
segfault
dmesg:
sendmail[14145]: segfault at 0 ip 0804bd62 sp bfd8d610 error 4 in ssmtp[8048000+6000]


Expected Results:  
mail to be delivered without segfault

gdb backtrace:

Thread 1 (Thread 0xb73758f0 (LWP 14276)):
#0  0x0804bd62 in ssmtp (argv=0x804f1e0) at ssmtp.c:1536
        buf = '\000' <repeats 2048 times>
        p = <value optimized out>
        q = <value optimized out>
        pw = 0xb7729c20
        sock = 5
        uid = 0
        minus_v_save = <value optimized out>
        timeout = <value optimized out>
#1  0x0804c4ff in main (argc=2, argv=0xbfd5d924) at ssmtp.c:2070
        new_argv = 0x0

mail-mta/ssmtp-2.62-r7
compiled with
accept_keywords="x86"
features="nostrip"
cflags="-O2 -march=pentium4 -pipe -ggdb"
chost="i686-pc-linux-gnu"
Comment 1 Andreas K. Hüttel archtester gentoo-dev 2010-04-03 23:23:43 UTC
Similar but not identical to bug 258018
Comment 2 selckin 2010-04-18 15:54:17 UTC
not fixed in 2.64 either, does it have an upstream project page anywhere?
Comment 3 kfm 2010-12-04 12:38:36 UTC
Re Comment 2 - the upstream maintainer is anibal@debian.org: http://packages.qa.debian.org/s/ssmtp.html

I've commented on an upstream bug (referenced in the URL field here) with relevant information from both bugs 258018 and 313017.
Comment 4 Diego Elio Pettenò (RETIRED) gentoo-dev 2011-01-19 13:51:16 UTC
Please try with version 2.64 and re-open if it's still a problem.