logo       


Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...

Non terminated string [PATCH]: msg#00000

Subject: Non terminated string [PATCH]
I really had some trouble to get monotone 0.9 working on my powerpc and traced it down to two bugs:

- verify(local_path&) uses the wrong index for it's error message (which I never see, but that is perhaps boost's problem)
- illegal_path_bytes is not NUL terminated

Symptoms:
# ./monotone

*** Error: std::out_of_range: basic_string::at

**** error return code 205
**********  errors detected; see standard output for details  ***********

(once 1st error is fixed:)
# ./monotone

*** Error: unknown type

**** error return code 205
**********  errors detected; see standard output for details  ***********
vocab.cc:151: usage constraint 'N(pos == string::npos)' violated

Platform: Linux/powerpc
(bug #2 seems to be hidden on ix86)

Best regards
   Christof

# Old manifest: 9c9bcf4f21d066b689da54b8cfb0a54c553d919a
# Summary of changes:
#   patch constants.cc 508a5418b3b1217b04d3ecca4ee4068f0c40e35d -> 
d4ad141661535aa4ded475a18a3a05af15ded3fa
#   patch vocab.cc 134174634bc2646cd42e8e976fa76e92afe4a17e -> 
1c6f04a9f067a7e43fe054e1690ba9cc7f115f17
--- constants.cc
+++ constants.cc
@@ -114,7 +114,7 @@
   
   // all the ASCII characters (bytes) which are illegal in a (file|local)_path
 
-  char const illegal_path_bytes_arr[32] = 
+  char const illegal_path_bytes_arr[33] = 
     { 
       0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 
       0x08, 0x09, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f, 
--- vocab.cc
+++ vocab.cc
@@ -145,7 +145,7 @@
       N(!(*i == "." || *i == ".."),
        F("prohibited path component '%s' in '%s'") % *i % val);
 
-      string::size_type pos = 
val().find_first_of(constants::illegal_path_bytes);
+      string::size_type pos = i->find_first_of(constants::illegal_path_bytes);
       N(pos == string::npos,
        F("bad character '%d' in path component '%s' of '%s'") 
        % static_cast<int>(i->at(pos)) % *i % val);
_______________________________________________
Monotone-devel mailing list
Monotone-devel@xxxxxxxxxx
http://mail.nongnu.org/mailman/listinfo/monotone-devel
Ruby Jobs
Java Jobs
Jobs in California
more...
what
job title, keywords
where
city, state, zip
jobs by job search
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
encryption.gpg....    ietf.rfc822/199...    freebsd.devel.i...    lang.haskell.li...    mail.squirrelma...    web.zope.plone....    yellowdog.gener...    text.xml.xalan....    recreation.phot...    kde.devel.educa...    hardware.bus.ca...    printing.ghosts...    voip.peering/20...    assembly/2006-0...    org.user-groups...    culture.interne...    network.i2p/200...    boot-loaders.ya...    xfree86.render/...    qnx.openqnx.dev...    jakarta.velocit...    user-groups.pal...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe