Skip to content

Commit

Permalink
Avoid null pointer dereference in dt_mipmap_cache_get_with_caller whi…
Browse files Browse the repository at this point in the history
…le logging
  • Loading branch information
kofa73 committed Feb 5, 2025
1 parent 2b22e83 commit 83efdea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common/mipmap_cache.c
Original file line number Diff line number Diff line change
Expand Up @@ -1152,7 +1152,7 @@ void dt_mipmap_cache_get_with_caller(
flags == DT_MIPMAP_PREFETCH_DISK ? "DT_MIPMAP_PREFETCH_DISK" : "",
flags == DT_MIPMAP_BLOCKING ? "DT_MIPMAP_BLOCKING" : "",
flags == DT_MIPMAP_BEST_EFFORT ? "DT_MIPMAP_BEST_EFFORT" : "",
imgid, mip, mode, buf->buf);
imgid, mip, mode, (buf ? buf->buf : NULL));
}

void dt_mipmap_cache_release_with_caller(dt_mipmap_cache_t *cache,
Expand Down

0 comments on commit 83efdea

Please sign in to comment.