| 1 |
diff -up texlive-2007/texk/web2c/bibtex.ch.poolfix texlive-2007/texk/web2c/bibtex.ch
|
| 2 |
--- texlive-2007/texk/web2c/bibtex.ch.poolfix 2006-12-27 00:37:34.000000000 +0100
|
| 3 |
+++ texlive-2007/texk/web2c/bibtex.ch 2009-10-16 06:55:52.000000000 +0200
|
| 4 |
@@ -1134,6 +1134,15 @@ while ((ex_buf_xptr < ex_buf_ptr) and
|
| 5 |
@y
|
| 6 |
@z
|
| 7 |
|
| 8 |
+% Forgot to check for pool overflow here. Triggered by test case linked
|
| 9 |
+% from http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=520920.
|
| 10 |
+@x
|
| 11 |
+while (sp_ptr < sp_end) do {shift the substring}
|
| 12 |
+@y
|
| 13 |
+str_room(sp_end - sp_ptr);
|
| 14 |
+while (sp_ptr < sp_end) do {shift the substring}
|
| 15 |
+@z
|
| 16 |
+
|
| 17 |
% [459] Eliminate unreferenced statement label, because `undefined' is
|
| 18 |
% now a constant expression that is not evaluated at the Web level. If
|
| 19 |
% this label were ever required, it could be replaced by the constant
|