Package: libdbi1
Version: 0.8.4-6
Severity: normal
Tags: patch

Dear Maintainer,

While debugging a memory leak using libdbi when querying the same row
multiple times (due to result caching), I found that it had already been
fixed in the Redhat RHEL6 package libdbi-0.8.3-4.el6.src.rpm in Sep 2012.

Please integrate the following patch into the Debian package, and perhaps
pass on to the upstream maintainers, it does not seem to be fixed there yet.

--- a/src/dbi_result.c
+++ b/src/dbi_result.c
@@ -1533,7 +1533,7 @@ static unsigned int _find_field(dbi_resu
 }
 
 static int _is_row_fetched(dbi_result_t *result, unsigned long long row) {
-  if (!result->rows || (row >= result->numrows_matched)) return -1;
+  if (!result->rows || (row > result->numrows_matched)) return -1;
   return !(result->rows[row] == NULL);
 }
 

Note that in order to recompile the fixed libdbi package I also had to
add openjade to the Build-Depends, as without it the build fails with a
"openjade: Command not found" compile error, but then it works

Greetings,
Haegar


-- System Information:
Debian Release: jessie/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'oldstable'), (101, 'experimental')
Architecture: i386 (x86_64)
Foreign Architectures: amd64

Kernel: Linux 3.2.47-sdinet83-cut1 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages libdbi1 depends on:
ii  libc6  2.17-7

libdbi1 recommends no packages.

libdbi1 suggests no packages.

-- debconf-show failed


-- 
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