Bug 1096155: Report the correct OOM size when the caller doesn't specify a length. r=froydnj

--HG--
extra : rebase_source : 437d3acc69b0940cf388039a318eda7d9d27e082
Bug 1095633 - part 1 - remove uses of HAVE_CPP_TROUBLE_COMPARING_TO_ZERO from headers; r=bz
Bug 1095633 - part 2 - remove HAVE_CPP_TROUBLE_COMPARING_TO_ZERO bits from the build system; r=mshal