Bug#552570: bibutils: xml2bib segfaults for large xml files on i386 arch
David Bremner
bremner at unb.ca
Fri Oct 30 02:15:07 UTC 2009
The following patch seems to fix it for me. I may as well do a new
upstream release as well as the bug fix, so it will take a bit longer.
diff --git a/lib/name.c b/lib/name.c
index 94a225c..e1dec3a 100644
--- a/lib/name.c
+++ b/lib/name.c
@@ -185,6 +185,7 @@ name_comma( char *p, newstr *outname )
/** Last name **/
start_last = skip_ws( p );
+ end_last = string_end(p);
while ( *p && ( *p!=',' ) ) {
newstr_addchar( outname, *p++ );
end_last = p;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.xml
Type: application/octet-stream
Size: 3947 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/debian-science-maintainers/attachments/20091029/239d26e8/attachment-0001.obj>
More information about the debian-science-maintainers
mailing list