diff options
Diffstat (limited to 'zluda_dump/src/dark_api.rs')
-rw-r--r-- | zluda_dump/src/dark_api.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/zluda_dump/src/dark_api.rs b/zluda_dump/src/dark_api.rs index b9fd9c2..3ae50ed 100644 --- a/zluda_dump/src/dark_api.rs +++ b/zluda_dump/src/dark_api.rs @@ -491,7 +491,8 @@ unsafe fn record_submodules( if fatbin_file_kind == FATBIN_FILE_HEADER_KIND_PTX {
let decompressed = decompress_kernel_module(fatbin_file);
match decompressed {
- Some(decompressed) => {
+ Some(mut decompressed) => {
+ decompressed.pop(); // remove trailing zero
state.record_new_submodule(module, version, &*decompressed, fn_logger, "ptx")
}
None => fn_logger.log(log::LogEntry::Lz4DecompressionFailure),
|