Skip to content

Commit

Permalink
Changes to get fuzz targets building again after img_info cache membe…
Browse files Browse the repository at this point in the history
…r changes
  • Loading branch information
joachimmetz committed Jan 25, 2025
1 parent 9c149b1 commit 9c11af6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ossfuzz/mem_img.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,11 @@ static ssize_t mem_read(TSK_IMG_INFO *img_info, TSK_OFF_T offset, char *buf,

static void mem_close(TSK_IMG_INFO *img_info) {
IMG_MEM_INFO *mem_info = reinterpret_cast<IMG_MEM_INFO *>(img_info);

auto cache = static_cast<LegacyCache*>(img_info->cache_holder);
delete cache;
img_info->cache_holder = nullptr;

free(mem_info);
}

Expand Down

0 comments on commit 9c11af6

Please sign in to comment.