Skip Menu |

This queue is for tickets about the Bio-SamTools CPAN distribution.

Report information
The Basics
Id: 68825
Status: resolved
Priority: 0/
Queue: Bio-SamTools

People
Owner: LDS [...] cpan.org
Requestors: qiuhongwen [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: [PATCH] Fix a mem bug in BIO::DB::Bam::Header->text
Date: Wed, 15 Jun 2011 17:00:34 +0800
To: bug-Bio-SamTools [...] rt.cpan.org
From: Hongwen Qiu <qiuhongwen [...] gmail.com>
Hi, I have samtools-0.1.16 installed, and since the bam_header_t object's memory is allocated by calloc() in bam_header_init(), assignment a char pointer to bamh->text directly will result in free() from wrong pointer error. The attached fix that mem dump error in Sam.xs file, so that all the tests get passed.

Message body is not shown because sender requested not to inline it.

Thanks, patch is accepted into version 1.29.