-
-
Notifications
You must be signed in to change notification settings - Fork 579
Closed
Labels
Description
I'm getting panic: runtime error: index out of range [45675] with length 45675
on pdfcpu/pdfcpu/pkg/pdfcpu/writeImage.go:346. when trying to extract images from PDF.
Is this potentially an off by one error? Maybe it just needs an length check and if it is out of bounds to use the defaulted alpha := uint8(255)?
Linux Arch
6.8.8-arch1-1 #1 SMP PREEMPT_DYNAMIC Sun, 28 Apr 2024 15:59:47 +0000 x86_64 GNU/Linux
Commenting out alpha = im.softMask[y*im.w+x] makes my PDF extract images without panic