Summary: | [patch] fix uninitialized variable in Splash::pipeRun(SplashPipe*) (Splash.cc:470) | ||
---|---|---|---|
Product: | poppler | Reporter: | William Bader <williambader> |
Component: | splash backend | Assignee: | poppler-bugs <poppler-bugs> |
Status: | RESOLVED FIXED | QA Contact: | |
Severity: | normal | ||
Priority: | medium | CC: | williambader |
Version: | unspecified | ||
Hardware: | Other | ||
OS: | All | ||
Whiteboard: | |||
i915 platform: | i915 features: | ||
Attachments: |
provisional patch
patch to change the test from pipe->shape to pipe->usesShape |
Description
William Bader
2015-02-18 06:27:08 UTC
yes, pipe->shape should be pipe->usesShape, i'd prefer not initializing pipe->shape, pipeInit and friends should do the correct thing, there's already a usesShape guard, initializing it is just poors man solution of accepting can't find the "proper" solution. Created attachment 113737 [details] [review] patch to change the test from pipe->shape to pipe->usesShape OK, here is a new patch that changes the test from pipe->shape to pipe->usesShape. I ran some of my test files through pdftops under valgrind, and it fixed the "Conditional jump or move depends on uninitialised value(s)" error in Splash::pipeRun(SplashPipe*) (Splash.cc:470) Can you attach one of those documents? I used the document attached to the bug report referenced in the first sentence of comment 1. I just checked that the document is still available. You do not need any special command line options. Just run "pdftops source.pdf source.ps". Here is the link https://www.dropbox.com/s/yoj6h3o4irnlgun/source.pdf?dl=0 Pushed I had to go back to the pipe.shape = 0 in pipeInit since what i suggested was causing a regression in eci_altona-test-suite-v2_technical2_x4.pdf Does other code like pipe->nonIsolatedGroup use pipe->shape without setting pipe->usesShape? Is it possible that the change from the regression was correct because pipe->shape can be set for other purposes when pipe->usesShape is not set, and the "if" that the patch changes should really not be entered if pipe->usesShape is not set even if pipe->shape is set? No, the change from the regression was not correct, since the previous behaviour was the same that Adobe Reader had and the one after wasn't The rest of the questions, no idea tbh |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.