Skip to content
Snippets Groups Projects
Commit 6025950a authored by Slava Monich's avatar Slava Monich
Browse files

[gbinder] Decode NULL object reference. JB#52557

parent 4d69940b
No related branches found
No related tags found
No related merge requests found
......@@ -397,6 +397,15 @@ GBINDER_IO_FN(decode_binder_object)(
*out = gbinder_object_registry_get_remote(reg, obj->handle);
}
return sizeof(*obj);
case BINDER_TYPE_BINDER:
if (!obj->binder) {
/* That's a NULL reference */
if (out) {
*out = NULL;
}
return sizeof(*obj);
}
/* fallthrough */
default:
GERR("Unsupported binder object type 0x%08x", obj->hdr.type);
break;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment