Skip to content
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: Fix possible null pointer when /First does not exist #258

Merged
merged 1 commit into from
Jun 22, 2024

Conversation

eknoes
Copy link
Contributor

@eknoes eknoes commented Jun 16, 2024

Seems to be a typo, otherwise this can lead to the following null pointer when /First does not exist.

Program received signal SIGSEGV, Segmentation fault.
0x0000555555789696 in PDFInteger::GetValue (this=0x0) at PDF-Writer/PDFWriter/PDFInteger.cpp:34
34		return mValue;

#0  0x0000555555789696 in PDFInteger::GetValue (this=0x0)
    at PDF-Writer/PDFWriter/PDFInteger.cpp:34
#1  0x000055555574de05 in PDFParser::ParseExistingInDirectStreamObject (this=0x7ffff5d09060, inObjectId=10)
    at PDF-Writer/PDFWriter/PDFParser.cpp:1762
#2  0x000055555574ad36 in PDFParser::ParseNewObject (this=0x7ffff5d09060, inObjectId=10)
    at PDF-Writer/PDFWriter/PDFParser.cpp:730
#3  0x000055555573fed6 in PDFParser::ParsePagesObjectIDs (this=0x7ffff5d09060)
    at PDF-Writer/PDFWriter/PDFParser.cpp:848
#4  0x000055555573b6a1 in PDFParser::StartPDFParsing (this=0x7ffff5d09060, inSourceStream=0x7ffff5d09020, inOptions=...)
    at PDF-Writer/PDFWriter/PDFParser.cpp:139

@galkahana
Copy link
Owner

Thank you!

@galkahana galkahana merged commit 11344af into galkahana:master Jun 22, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants