Wrong size calculation leads to buffer overflow. Fix and catch other BufferOverflowExceptions to return gracefully.
Wrong size calculation leads to buffer overflow. Fix and catch other BufferOverflowExceptions
to return gracefully.

svn path=/branches/DLN/eXist-1.0/; revision=3779

RemiKoutcherawy/exist,shabanovd/exist,ambs/exist,dizzzz/exist,lcahlander/exist,windauer/exist,shabanovd/exist,olvidalo/exist,eXist-db/exist,adamretter/exist,patczar/exist,joewiz/exist,ljo/exist,eXist-db/exist,opax/exist,joewiz/exist,jessealama/exist,hungerburg/exist,kohsah/exist,MjAbuz/exist,zwobit/exist,windauer/exist,lcahlander/exist,adamretter/exist,ambs/exist,windauer/exist,jessealama/exist,shabanovd/exist,kohsah/exist,wolfgangmm/exist,patczar/exist,olvidalo/exist,jensopetersen/exist,dizzzz/exist,zwobit/exist,patczar/exist,adamretter/exist,wolfgangmm/exist,wshager/exist,hungerburg/exist,adamretter/exist,wshager/exist,shabanovd/exist,hungerburg/exist,wshager/exist,dizzzz/exist,opax/exist,joewiz/exist,joewiz/exist,opax/exist,MjAbuz/exist,hungerburg/exist,eXist-db/exist,wshager/exist,ljo/exist,opax/exist,wolfgangmm/exist,adamretter/exist,eXist-db/exist,lcahlander/exist,kohsah/exist,wshager/exist,MjAbuz/exist,olvidalo/exist,wolfgangmm/exist,dizzzz/exist,kohsah/exist,lcahlander/exist,RemiKoutcherawy/exist,opax/exist,jensopetersen/exist,jessealama/exist,RemiKoutcherawy/exist,jensopetersen/exist,eXist-db/exist,kohsah/exist,zwobit/exist,olvidalo/exist,zwobit/exist,patczar/exist,wolfgangmm/exist,windauer/exist,ljo/exist,kohsah/exist,MjAbuz/exist,ljo/exist,lcahlander/exist,windauer/exist,jensopetersen/exist,hungerburg/exist,MjAbuz/exist,jessealama/exist,jensopetersen/exist,zwobit/exist,eXist-db/exist,jensopetersen/exist,shabanovd/exist,olvidalo/exist,ambs/exist,MjAbuz/exist,RemiKoutcherawy/exist,RemiKoutcherawy/exist,wshager/exist,dizzzz/exist,ljo/exist,wolfgangmm/exist,ambs/exist,adamretter/exist,patczar/exist,joewiz/exist,jessealama/exist,joewiz/exist,windauer/exist,ambs/exist,zwobit/exist,RemiKoutcherawy/exist,patczar/exist,jessealama/exist,dizzzz/exist,ambs/exist,lcahlander/exist,ljo/exist,shabanovd/exist