-
Notifications
You must be signed in to change notification settings - Fork 17
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
patching PDFCore.py to properly check for ids in self.objects #7
Conversation
2 similar comments
So any reason you don't want to merge this that I can resolve? |
@wroersma sorry, mostly just forgot about it. Going to check soon! |
@wroersma I can't imagine that your patch works; first of all the keys to |
I'll take a look when I get a second to see what that looks like running through with a debugger. I mean it doesn't hard break for me and we're using it with our custom cuckoo, custom sflock and now custom peepdf in production and it's working but I probably could've spent more time really stepping through that code to fully understand the impacts it would have. I will get back to you shortly on this. |
|
Your fix is much cleaner for sure they both work so that would resolve the bug so that works for me. As far as the other code goes we still don't have a VBN file to share publicly to add that into sflock but we might just release vbncarver as a python package that you could possibly use as a third party call. The cuckoo stuff well that's a lot of changes as it would remove a lot of functionality from cuckoo itself and move it into a bunch of micro services etc. I am also working on changes to move away from django as well. |
So do you want to just commit that then and I can just close this PR? It works perfectly and is very clean so that makes sense and it's not any of my code so haha. I'm good with either way though. |
Sure thing! Drop me an email at |
So I ran into a bug with the following pdf md5:bd23ad33accef14684d42c32769092a0
this would cause peepdf to break with the following error
This patch makes it so it doesn't hard break and does a better check for the ID in self.object so it doesn't totally break trying to set the value as None.
After fix output is as follows