Skip to content

v2.5.1 - Audit Bug Fixes

Choose a tag to compare

@Sucotasch Sucotasch released this 19 Jul 19:48
· 66 commits to master since this release

AntiDuplPlus v2.5.1

Bug fixes from full code audit (2026-07-17/18).

Bug Fixes

  • BUG-01 [P0]: Thumb size mismatch -> heap OOB. Added side == reducedImageSize guard in GPU pack loop.
  • BUG-02 [P1]: DLL-native index magic detection fixed (0x69696461u = "adii").
  • BUG-03 [P1]: Unbounded fread of thumbnail bytes - added thumbBytes == side*side validation.
  • BUG-04 [P1]: GPU now applies CPU-equivalent metadata filters (type, size, folder, searchPath, ratio).
  • BUG-05 [P1]: Batch move now updates result list via new MarkRemoved native API.
  • BUG-06 [P1]: Shutdown timeout increased from 2s to 10s to prevent use-after-free.
  • BUG-07 [P2]: validCount < 2 now returns success instead of fake GPU error.
  • BUG-09 [P2]: Fixed VRAM leak - d_poolMask freed on all error paths.
  • BUG-11 [P3]: Skip flag set before CollectManager.Start() for correct thread count.

GPU Filter Parity (WP-A)

  • ratioControl filter now works in GPU mode
  • minimalImageSize / maximalImageSize filters at pack loop (improves performance)
  • transformedImage forces CPU path when enabled

Known Limitations

  • BUG-08 (match buffer truncation) - skipped, rare case (>5M pairs)
  • BUG-10 (GPU->CPU fallback) - skipped, not needed
  • BUG-12 (hybrid DB+FS scan) - closed as by design

Runtime Verified

  • 7333 images, SqSum + SSIM, GPU SUCCESS
  • Batch delete and move working correctly