[haiku-bugs] Re: [Haiku] #7266: E-mail preferences freezes when new mail account is created

  • From: "czeidler" <trac@xxxxxxxxxxxx>
  • Date: Tue, 08 Mar 2011 04:54:47 -0000

#7266: E-mail preferences freezes when new mail account is created
-----------------------------------+----------------------------
   Reporter:  taos                 |      Owner:  czeidler
       Type:  bug                  |     Status:  assigned
   Priority:  normal               |  Milestone:  R1
  Component:  Servers/mail_server  |    Version:  R1/Development
 Resolution:                       |   Keywords:
 Blocked By:                       |   Blocking:
Has a Patch:  0                    |   Platform:  All
-----------------------------------+----------------------------

Comment (by czeidler):

 The crash occurres when removing the first char in ConvertFromDNSName:

 BString
 DNSTools::ConvertFromDNSName(const BString& string)
 {
         if (string.Length() == 0)
                 return string;

         BString outString = string;
         int32 dot = string[0];
         int32 nextDot = dot;
         outString.Remove(0, 1);

 I'm a bit lost how could this happen? The code where this is called looks
 thread safe... It allways crashes in realloc in the BString class see
 debug backtrace. Could somebody help me out here?

-- 
Ticket URL: <http://dev.haiku-os.org/ticket/7266#comment:6>
Haiku <http://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: