logo

oasis

Own branch of Oasis Linux (upstream: <https://git.sr.ht/~mcf/oasis/>) git clone https://anongit.hacktivis.me/git/oasis.git

0010-Avoid-arithmetic-on-void-pointer.patch (705B)


  1. From e97b3c526b84a7bb8b504bbd765bde4924cc1bb6 Mon Sep 17 00:00:00 2001
  2. From: Michael Forney <mforney@mforney.org>
  3. Date: Sat, 21 Jan 2023 17:52:40 -0800
  4. Subject: [PATCH] Avoid arithmetic on void pointer
  5. ---
  6. module/zcommon/zfs_fletcher.c | 2 +-
  7. 1 file changed, 1 insertion(+), 1 deletion(-)
  8. diff --git a/module/zcommon/zfs_fletcher.c b/module/zcommon/zfs_fletcher.c
  9. index 74b8c2a47..93342f615 100644
  10. --- a/module/zcommon/zfs_fletcher.c
  11. +++ b/module/zcommon/zfs_fletcher.c
  12. @@ -583,7 +583,7 @@ fletcher_4_incremental_impl(boolean_t native, const void *buf, uint64_t size,
  13. fletcher_4_incremental_combine(zcp, len, &nzc);
  14. size -= len;
  15. - buf += len;
  16. + buf = (char *)buf + len;
  17. }
  18. }
  19. --
  20. 2.44.0