ticket:11054: Fixed ubidi_setPara crash issue caused by wrong memory allocation size check. Added a simple test case which reproduced the problem.

git-svn-id: http://source.icu-project.org/repos/icu/icu/trunk@36304 251d0590-4201-4cf1-90de-194747b24ca1