[tex-live] crash using bibtex on large .bib files
Karl Berry
karl at freefriends.org
Wed Aug 12 15:33:36 CEST 2009
> [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
--- 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
More information about the tex-live
mailing list