malloc-fail: Fix OOB read after xmlRegGetCounter Found with libFuzzer, see #344. (cherry picked from commit 1743c4c3fc58cf38ecce68db9de51d0f3651e033) I also copied the error label from e64653c0e7975594e27d7de2ed4be062c1e4ad03 to fix the build failure. Bug: http://b/274231102 Test: TreeHugger (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:19e6d50dbabcfbbb53f5410c19ea5613e0a8ad7a) Merged-In: I3bad3e03092e17a761cb6e299aff848ebd35b6f4 Change-Id: I3bad3e03092e17a761cb6e299aff848ebd35b6f4