Package: libofx4
Version: 1:0.9.1-1
Severity: important

When I download a ofx file with multiple statements for my Amex account, it 
will crash on import with both "ofxdump" and gnucash.

There does seem to be an upstream 0.9.1 version available that fixes the 
problem.
http://sourceforge.net/projects/libofx/
I was able to do a test build myself to fix the problem.

This is the specific fix for the crash I see.

diff -u libofx-0.9.0/lib/ofx_preproc.cpp ../libofx-0.9.0/lib/ofx_preproc.cpp
--- libofx-0.9.0/lib/ofx_preproc.cpp    2009-09-30 20:48:29.000000000 -0700
+++ ../libofx-0.9.0/lib/ofx_preproc.cpp 2009-09-29 23:39:58.000000000 -0700
@@ -493,10 +493,16 @@
       }
 
   }//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;



-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (50, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.30.5-mud (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/bash

Versions of packages libofx4 depends on:
ii  libc6                         2.9-26     GNU C Library: Shared libraries
ii  libgcc1                       1:4.4.1-4  GCC support library
ii  libosp5                       1.5.2-7    Runtime library for OpenJade group
ii  libstdc++6                    4.4.1-4    The GNU Standard C++ Library v3

libofx4 recommends no packages.

Versions of packages libofx4 suggests:
ii  ofx                           1:0.9.1-1  Open Financial Exchange programs

-- no debconf information



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to