Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 182192 - net-mail/vpopmail 5.4.16 - vadddomain segfaults when adding domain without dots
Summary: net-mail/vpopmail 5.4.16 - vadddomain segfaults when adding domain without dots
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-06-16 01:19 UTC by Jochen Schlick
Modified: 2007-07-31 17:54 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 Jochen Schlick 2007-06-16 01:19:11 UTC
> vadddomain blablub passwd
Program received signal SIGSEGV, Segmentation fault

######################
The problem is in vpopmail.c which assumes that every domain contains at least of two parts !! This is not always true especially for virtual test domains. 
Here the troublemaker lines (vpopmail.c in function extract_domain(), something around line 1670):

...
  //  Juggle the order of stuff in the domain name
    
  //  Save the last two terms
  t = parts[--i];
  u = parts[--i];
...

If the domain name contains no dots, the vakue of i is 1. Therefore t = parts[0] und u = parts[-1] !!!!!!!
 




Reproducible: Always
Comment 1 Jochen Schlick 2007-06-16 09:50:31 UTC
this issue seems to be fixed in the current stable version (5.4.17) after taking a look at the code.
I think it's time for version 5.4.17 
 
Comment 2 Benedikt Böhm (RETIRED) gentoo-dev 2007-07-29 23:03:13 UTC
5.4.19 in portage, please test
Comment 3 Jochen Schlick 2007-07-31 00:21:16 UTC
-compiled fine
-but doesnt't run at the moment due to some mysql database upgrade issues (5.4.x ->5.4.19)
Comment 4 Jochen Schlick 2007-07-31 17:54:15 UTC
I tried to upgrade the 5.4.17 vpopmail mysql database but with the info provided in the UPGRADE file of 5.4.19 it doesn't work. After I fixed the problem with the wrong names domain -> pw_domain vadddomain/vdeldomain still produce errors. 
With this result I dropped then the whole vpopmail database and let it create from the new 5.4.19 release. vadddomain/vadduser/... have no longer problems and everything works now. The only annoying thing was thtat I had re-add my domains and users.