CVE-2015-5330: strupper_talloc_n_handle(): properly count characters