2 # Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
4 Add NULL checks to getBuffer calls and catch a potential file leak
5 https://unicode-org.atlassian.net/browse/ICU-12378
7 --- icu/source/extra/uconv/uconv.cpp.orig
8 +++ icu/source/extra/uconv/uconv.cpp
13 - const char16_t *u = s.getBuffer(), *limit = u + s.length();
14 + const char16_t *u = s.getBuffer();
17 + const char16_t *limit = u + s.length();
23 cf.setBufferSize(bufsz);
26 if(remainArgv < remainArgvLimit) {
27 for (iter = remainArgv; iter != remainArgvLimit; iter++) {
29 @@ -1367,6 +1371,11 @@