Check for nullptr before copying to out_data in serviceDispatchImpl.

This commit is contained in:
yellows8 2019-10-01 20:50:09 -04:00
parent 127408a1f7
commit f17773c64f
No known key found for this signature in database
GPG Key ID: 0AF90DA3F1E60E43

View File

@ -439,7 +439,7 @@ NX_INLINE Result serviceDispatchImpl(
disp.out_num_objects, disp.out_objects,
disp.out_handle_attrs, disp.out_handles);
if (R_SUCCEEDED(rc) && out_data_size)
if (R_SUCCEEDED(rc) && out_data && out_data_size)
__builtin_memcpy(out_data, out, out_data_size);
}