From 8c3ec5773cfaf5cda6020e5753aa82285557c5d4 Mon Sep 17 00:00:00 2001 From: Brian Carrier Date: Mon, 8 Sep 2025 17:35:37 -0400 Subject: [PATCH] fix minor issues-claude --- tsk/img/ewf.cpp | 2 +- tsk/img/img_io.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tsk/img/ewf.cpp b/tsk/img/ewf.cpp index 1dc8c81da0..36c9265364 100755 --- a/tsk/img/ewf.cpp +++ b/tsk/img/ewf.cpp @@ -675,7 +675,7 @@ std::string ewf_get_details(IMG_EWF_INFO *ewf_info) { char* result = (char*)tsk_malloc(buffer_size); if (result == NULL) { - return NULL; + return ""; } string collectionDetails = ""; diff --git a/tsk/img/img_io.c b/tsk/img/img_io.c index dd84b24c68..e2a7036624 100755 --- a/tsk/img/img_io.c +++ b/tsk/img/img_io.c @@ -12,7 +12,7 @@ #include "tsk_img_i.h" -// This function assumes that we hold the cache_lock even though we're not modyfying +// This function assumes that we hold the cache_lock even though we're not modifying // the cache. This is because the lower-level read callbacks make the same assumption. static ssize_t tsk_img_read_no_cache(TSK_IMG_INFO * a_img_info, TSK_OFF_T a_off, char *a_buf, size_t a_len) @@ -22,7 +22,7 @@ static ssize_t tsk_img_read_no_cache(TSK_IMG_INFO * a_img_info, TSK_OFF_T a_off, /* Some of the lower-level methods like block-sized reads. * So if the len is not that multiple, then make it. */ if ((a_img_info->sector_size > 0) && (a_len % a_img_info->sector_size)) { - char *buf2 = a_buf; + char *buf2 = NULL; size_t len_tmp; len_tmp = roundup(a_len, a_img_info->sector_size);