-
Notifications
You must be signed in to change notification settings - Fork 10.1k
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
Avoid out of range array access in JBIG2 decoder #5669
Avoid out of range array access in JBIG2 decoder #5669
Conversation
7a1e803
to
8013100
Compare
/botio test |
From: Bot.io (Windows)ReceivedCommand cmd_test from @Snuffleupagus received. Current queue size: 0 Live output at: http://107.22.172.223:8877/5ada5a015667842/output.txt |
From: Bot.io (Linux)ReceivedCommand cmd_test from @Snuffleupagus received. Current queue size: 0 Live output at: http://107.21.233.14:8877/fb7bce13911d1bd/output.txt |
From: Bot.io (Windows)FailedFull output at http://107.22.172.223:8877/5ada5a015667842/output.txt Total script time: 3.84 mins
Image differences available at: http://107.22.172.223:8877/5ada5a015667842/reftest-analyzer.html#web=eq.log |
From: Bot.io (Linux)SuccessFull output at http://107.21.233.14:8877/fb7bce13911d1bd/output.txt Total script time: 23.03 mins
|
/botio-windows test |
From: Bot.io (Windows)ReceivedCommand cmd_test from @yurydelendik received. Current queue size: 0 Live output at: http://107.22.172.223:8877/768c15980bd259d/output.txt |
From: Bot.io (Windows)SuccessFull output at http://107.22.172.223:8877/768c15980bd259d/output.txt Total script time: 17.93 mins
|
/botio-linux preview |
From: Bot.io (Linux)ReceivedCommand cmd_preview from @timvandermeij received. Current queue size: 0 Live output at: http://107.21.233.14:8877/cdce1ac6b2db209/output.txt |
From: Bot.io (Linux)SuccessFull output at http://107.21.233.14:8877/cdce1ac6b2db209/output.txt Total script time: 0.78 mins Published |
…Jbig2Decoder Avoid out of range array access in JBIG2 decoder
Really nice, thank you! |
I was just looking at the code, and I wondered if you have tested unrolling that magic or yourself
could be
I dont have the setup handy, maybe if thats interesting for you, try it out and let me know. I know the code looks way uglier than before, but maybe its even worth. |
@CodingFabian Before I committed this fix, I have tested similar code to avoid the branching in the |
…ccessInJbig2Decoder Avoid out of range array access in JBIG2 decoder
Fixes #5663. Chrome rendering times are down from 4 seconds to <1.5s.
Benchmark with document from #2909: