Am Sonntag, 24. Juni 2007 06:48 schrieb David Reiser:
> ofx imports of files from ameritrade are giving me serious heartburn
> at the moment. 

Sorry to hear that :-/

> does the following gdb info suggest something specific to anyone?

Try the attached patch on libofx. That should at least fix this particular 
crash. If it indeed fixes the crash, please report this to Benoit and ask him 
to have another libofx release.

As for your other crash the discussion is continuing on 
http://bugzilla.gnome.org/show_bug.cgi?id=450276 . And as I said there: The 
transactions will most probably not be imported correctly yet, but at least
this won't lead to a crash anymore.

Christian
? libofx-0.8.1.tar.gz
Index: lib/ofx_preproc.cpp
===================================================================
RCS file: /cvsroot/libofx/libofx/lib/ofx_preproc.cpp,v
retrieving revision 1.18
diff -u -r1.18 ofx_preproc.cpp
--- lib/ofx_preproc.cpp	24 Jan 2007 08:53:54 -0000	1.18
+++ lib/ofx_preproc.cpp	24 Jun 2007 09:13:50 -0000
@@ -470,7 +470,7 @@
       tagname_idx++;
     }
     //cerr <<i<<endl;
-    if(strip==true)
+    if(strip==true && orig_tag_open_idx < input_string.size())
       {
 	input_string.copy(buffer,(crop_end_idx-orig_tag_open_idx)+1,orig_tag_open_idx);
 	message_out(INFO,"sanitize_proprietary_tags() (end tag or new tag) removed: "+string(buffer));
@@ -484,7 +484,7 @@
       }
 
   }//end for
-  if(proprietary_tag==true){
+  if(proprietary_tag==true && orig_tag_open_idx < input_string.size()){
     if(crop_end_idx==0){//no closing tag
       crop_end_idx=input_string.size()-1;
     }
_______________________________________________
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel

Reply via email to