[tex-live] crash using bibtex on large .bib files

Vincent Danen vdanen at redhat.com
Wed Aug 12 17:49:32 CEST 2009

* [2009-08-12 08:33:36 -0500] Karl Berry wrote:

>>    [1] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=520920
>Here's the patch I came up with.  It seems Oren forgot to check for
>enough room in the string pool in the substring bst function.  I'll tell
>him so he can fix it in bibtex 1.0 :).
>Let me know if problems persist ...

Thanks Karl.  I've passed this on to our developer for him to deal with
this.  If we do run into problems, I'll let you know.  Thanks again!

>--- bibtex.ch   (revision 14622)
>+++ bibtex.ch   (working copy)
>@@ -1134,6 +1134,15 @@
> @y
> @z
>+% Forgot to check for pool overflow here.  Triggered by test case linked
>+% from http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=520920.
>+ at x
>+while (sp_ptr < sp_end) do                      {shift the substring}
>+ at y
>+str_room(sp_end - sp_ptr);
>+while (sp_ptr < sp_end) do                      {shift the substring}
>+ at z
> % [459] Eliminate unreferenced statement label, because undefined' is
> % now a constant expression that is not evaluated at the Web level. If
> % this label were ever required, it could be replaced by the constant

Vincent Danen / Red Hat Security Response Team 

More information about the tex-live mailing list