eXist-db/exist — pull request #181 by wolfgangmm (2014-03-28 22:34:02+00:00)
Title: Catch overflow in symbol table

eXist binary encodes the local names of elements/attributes in a 16bit short, which is more than sufficient for any reasonably well-designed data set. However, bad documents using more than 32k distinct names should not lead to corrupted data. We should therefore check if the 16bit range is exhausted before storing a node. If it is exhausted, no additional data should be stored to prevent corruption.