| 1 | + | ### **Test Case** |
| 2 | + | |
| 3 | + | ``` |
| 4 | + | <!DOCTYPE A SYSTEM "" |
| 5 | + | [ |
| 6 | + | <!ENTITY ENT_A SYSTEM "" NDATA A> |
| 7 | + | <!ENTITY ENT_B "&ENT_A;&ENT_B;"> |
| 8 | + | <!ATTLIST A C CDATA ""> |
| 9 | + | <!ATTLIST A D CDATA ""> |
| 10 | + | <!ATTLIST A E CDATA ""> |
| 11 | + | <!ATTLIST A F CDATA ""> |
| 12 | + | <!ATTLIST A G CDATA "&ENT_B;"> |
| 13 | + | ]> |
| 14 | + | ``` |
| 15 | + | |
| 16 | + | ### Reproducing the Issue |
| 17 | + | |
| 18 | + | Simply run `xmllint` on the provided test case. |
| 19 | + | |
| 20 | + | The bucket used in the hash function is affected by the random seed value used in hash randomization, therefore the test case *may need to be run multiple times* (by xmllint or any other parser using libxml2) to see the crash due to the system time being used to select the random seed. |