Found at openoffice bugtracker. Patch: http://www.openoffice.org/nonav/issues/showattachment.cgi/63584/bitxor2.patch
Bumping to 1.8.1.2 has fixed this issue.