8234968: check calloc rv in libinstrument InvocationAdapter

Reviewed-by: clanger, stuefe, sspitsyn
This commit is contained in:
Matthias Baesken 2019-11-29 08:00:36 +01:00
parent 9555be71a5
commit 5e85366785

View File

@ -710,6 +710,10 @@ char *decodePath(const char *s, int* decodedLen) {
}
resultp = result = calloc(n+1, 1);
if (result == NULL) {
*decodedLen = 0;
return NULL;
}
c = s[0];
for (i = 0; i < n;) {
if (c != '%') {