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.