8234968: check calloc rv in libinstrument InvocationAdapter
Reviewed-by: clanger, stuefe, sspitsyn
This commit is contained in:
parent
9555be71a5
commit
5e85366785
@ -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 != '%') {
|
||||
|
Loading…
x
Reference in New Issue
Block a user