-
Notifications
You must be signed in to change notification settings - Fork 254
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] GetAttachedFiles causes panic #565
Comments
Welcome! Thanks for posting your first issue. The way things work here is that while customer issues are prioritized, other issues go into our backlog where they are assessed and fitted into the roadmap when suitable. If you need to get this done, consider buying a license which also enables you to use it in your commercial products. More information can be found on https://unidoc.io/ |
@crashingfish thank you for the report. We'll investigate this immediately. |
@3ace I missed to share this. Hope this helps. [signal SIGSEGV: segmentation violation code=0x2 addr=0x20 pc=0x102e97340] goroutine 1 [running]: |
@crashingfish I've already located the issue and has implement a fix for this. The fix is currently in review internally and hopefully it would be available with our next UniPDF release. |
Thanks much.
…On Fri, 6 Sept 2024 at 17:43, Ade Anom A ***@***.***> wrote:
@crashingfish <https://github.com/crashingfish> I've already located the
issue and has implement a fix for this. The fix is currently in review
internally and hopefully it would be available with our next UniPDF release.
—
Reply to this email directly, view it on GitHub
<#565 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/BLCDAQRTX2SRWJTYCXX4SYLZVF2LTAVCNFSM6AAAAABNX6MUUGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMZTGY3TQNJSG4>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
@crashingfish we've released new UniPDF version 3.62.0 that should contain a fix for this issue https://github.com/unidoc/unipdf/tree/v3.62.0. Please test it and let us know the result. |
@crashingfish As we haven't received any further updates from you, we are closing this ticket for now. If you experience any additional issues, please open a new ticket. Thank you! |
Description
GetAttachedFiles was introduced in 3.5. Calling it on a pdf file with attachment consistently causes panic.
Expected Behavior
Return a list of attachments if any.
Actual Behavior
Steps to reproduce the behavior:
Sample code
`
fileBytes, _ := os.ReadFile(filename)
pdfReader, err := model.NewPdfReader(bytes.NewReader(fileBytes))
attachments, err := pdfReader.GetAttachedFiles()
`
Attachments
Cannot share internal pdf file due to compliance issues. However the code was testing against loads of files and the issue is consistent.
The text was updated successfully, but these errors were encountered: