After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 639746 - Applying commit for fixing several security issues in the dvi-backend breaks dvi views
Applying commit for fixing several security issues in the dvi-backend breaks ...
Status: RESOLVED FIXED
Product: evince
Classification: Core
Component: backends
2.32.x
Other Linux
: Normal major
: ---
Assigned To: Evince Maintainers
Evince Maintainers
Depends on:
Blocks:
 
 
Reported: 2011-01-17 13:52 UTC by Pacho Ramos
Modified: 2011-01-17 20:28 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
paper_enzimo.dvi (14.81 KB, application/x-dvi)
2011-01-17 13:52 UTC, Pacho Ramos
  Details
without patch (282.52 KB, image/png)
2011-01-17 13:53 UTC, Pacho Ramos
  Details
Screenshot after applying the patch (291.82 KB, image/png)
2011-01-17 13:59 UTC, Pacho Ramos
  Details
xdvi screenshot (101.14 KB, image/png)
2011-01-17 14:00 UTC, Pacho Ramos
  Details
fix the issue (1.09 KB, patch)
2011-01-17 17:44 UTC, José Aliste
committed Details | Review

Description Pacho Ramos 2011-01-17 13:52:00 UTC
Created attachment 178506 [details]
paper_enzimo.dvi

After using:
http://git.gnome.org/browse/evince/commit/?h=gnome-2-32&id=8e473c9796b9a61b811213e7892fd36fd570303a

With evince-2.32.0, evince only shows strange characters when opening attached dvi file. On the other hand, without applying the patch, evince works ok (it's still not perfect... but much better).
Comment 1 Pacho Ramos 2011-01-17 13:53:23 UTC
Created attachment 178507 [details]
without patch

Screenshot showing what I see without applying security patch to evince, it still shows some strange character (for example in the title, it's unable to show "Purificación"), but much better than evince after applying the patch
Comment 2 Pacho Ramos 2011-01-17 13:54:28 UTC
Without patching I get the following output when running in terminal:

$ evince paper_enzimo.dvi 

kpathsea: Running mktexpk --mfmode / --bdpi 600 --mag 1+120/600 --dpi 720 ptmbi8r
mktexpk: Running gsftopk ptmbi8r 720
gsftopk(k) version 1.19.2/871
[1] [2] [3] [4] [5] [6] [7] [8] [9] [11] [12] [14] [15] [16] [17] [30] [31]
[32] [33] [34] [35] [36] [37] [38] [39] [40] [41] [42] [43] [44] [45] [46] [47]
[48] [49] [50] [51] [52] [53] [54] [55] [56] [57] [58] [59] [60] [61] [62] [63]
[64] [65] [66] [67] [68] [69] [70] [71] [72] [73] [74] [75] [76] [77] [78] [79]
[80] [81] [82] [83] [84] [85] [86] [87] [88] [89] [90] [91] [92] [93] [94] [95]
[96] [97] [98] [99] [100] [101] [102] [103] [104] [105] [106] [107] [108] [109]
[110] [111] [112] [113] [114] [115] [116] [117] [118] [119] [120] [121] [122]
[123] [124] [125] [126] [130] [131] [132] [133] [134] [135] [136] [137] [138]
[139] [140] [147] [148] [149] [150] [151] [152] [153] [154] [155] [156] [159]
[161] [162] [163] [164] [165] [166] [167] [168] [169] [170] [171] [172] [173]
[174] [175] [176] [177] [178] [179] [180] [181] [182] [183] [184] [185] [186]
[187] [188] [189] [190] [191] [192] [193] [194] [195] [196] [197] [198] [199]
[200] [201] [202] [203] [204] [205] [206] [207] [208] [209] [210] [211] [212]
[213] [214] [215] [216] [217] [218] [219] [220] [221] [222] [223] [224] [225]
[226] [227] [228] [229] [230] [231] [232] [233] [234] [235] [236] [237] [238]
[239] [240] [241] [242] [243] [244] [245] [246] [247] [248] [249] [250] [251]
[252] [253] [254] [255]
cp: no se puede crear el fichero regular «/var/cache/fonts/pk/modeless/adobe/times/pk2736.tmp»: Permiso denegado
kpathsea: Appending font creation commands to missfont.log.
page: Warning: font `ptmbi8r' at 720x720 not found, trying `cmr10' instead

But it still "works" :-/
Comment 3 Pacho Ramos 2011-01-17 13:59:15 UTC
Created attachment 178509 [details]
Screenshot after applying the patch

As you can see it only shows understandable character after applying the patch and the following is shown in terminal:

$ evince paper_enzimo.dvi 

kpathsea: Running mktexpk --mfmode / --bdpi 600 --mag 1+120/600 --dpi 720 ptmbi8r
mktexpk: Running gsftopk ptmbi8r 720
gsftopk(k) version 1.19.2/871
[1] [2] [3] [4] [5] [6] [7] [8] [9] [11] [12] [14] [15] [16] [17] [30] [31]
[32] [33] [34] [35] [36] [37] [38] [39] [40] [41] [42] [43] [44] [45] [46] [47]
[48] [49] [50] [51] [52] [53] [54] [55] [56] [57] [58] [59] [60] [61] [62] [63]
[64] [65] [66] [67] [68] [69] [70] [71] [72] [73] [74] [75] [76] [77] [78] [79]
[80] [81] [82] [83] [84] [85] [86] [87] [88] [89] [90] [91] [92] [93] [94] [95]
[96] [97] [98] [99] [100] [101] [102] [103] [104] [105] [106] [107] [108] [109]
[110] [111] [112] [113] [114] [115] [116] [117] [118] [119] [120] [121] [122]
[123] [124] [125] [126] [130] [131] [132] [133] [134] [135] [136] [137] [138]
[139] [140] [147] [148] [149] [150] [151] [152] [153] [154] [155] [156] [159]
[161] [162] [163] [164] [165] [166] [167] [168] [169] [170] [171] [172] [173]
[174] [175] [176] [177] [178] [179] [180] [181] [182] [183] [184] [185] [186]
[187] [188] [189] [190] [191] [192] [193] [194] [195] [196] [197] [198] [199]
[200] [201] [202] [203] [204] [205] [206] [207] [208] [209] [210] [211] [212]
[213] [214] [215] [216] [217] [218] [219] [220] [221] [222] [223] [224] [225]
[226] [227] [228] [229] [230] [231] [232] [233] [234] [235] [236] [237] [238]
[239] [240] [241] [242] [243] [244] [245] [246] [247] [248] [249] [250] [251]
[252] [253] [254] [255]
cp: no se puede crear el fichero regular «/var/cache/fonts/pk/modeless/adobe/times/pk30978.tmp»: Permiso denegado
kpathsea: Appending font creation commands to missfont.log.
page: Warning: font `ptmbi8r' at 720x720 not found, trying `cmr10' instead
/home/pacho/Desktop/doscolumnas/paper_enzimo.dvi[1]: Warning: requested character 147 does not exist in `ptmr8r'
/home/pacho/Desktop/doscolumnas/paper_enzimo.dvi[1]: Warning: requested character 147 does not exist in `ptmr8r'
/home/pacho/Desktop/doscolumnas/paper_enzimo.dvi[1]: Warning: requested character 147 does not exist in `ptmr8r'
/home/pacho/Desktop/doscolumnas/paper_enzimo.dvi[1]: Warning: requested character 147 does not exist in `ptmr8r'
/home/pacho/Desktop/doscolumnas/paper_enzimo.dvi[1]: Warning: requested character 147 does not exist in `ptmr8r'
/home/pacho/Desktop/doscolumnas/paper_enzimo.dvi[1]: Warning: requested character 147 does not exist in `ptmr8r'
/home/pacho/Desktop/doscolumnas/paper_enzimo.dvi[1]: Warning: requested character 147 does not exist in `ptmr8r'
/home/pacho/Desktop/doscolumnas/paper_enzimo.dvi[1]: Warning: requested character 147 does not exist in `ptmr8r'
/home/pacho/Desktop/doscolumnas/paper_enzimo.dvi[1]: Warning: requested character 147 does not exist in `ptmr8r'
/home/pacho/Desktop/doscolumnas/paper_enzimo.dvi[1]: Warning: requested character 147 does not exist in `ptmr8r'
/home/pacho/Desktop/doscolumnas/paper_enzimo.dvi[1]: Warning: requested character 147 does not exist in `ptmr8r'
/home/pacho/Desktop/doscolumnas/paper_enzimo.dvi[1]: Warning: requested character 147 does not exist in `ptmr8r'
/home/pacho/Desktop/doscolumnas/paper_enzimo.dvi[2]: Warning: requested character 147 does not exist in `ptmr8r'
/home/pacho/Desktop/doscolumnas/paper_enzimo.dvi[2]: Warning: requested character 147 does not exist in `ptmr8r'
/home/pacho/Desktop/doscolumnas/paper_enzimo.dvi[2]: Warning: requested character 147 does not exist in `ptmr8r'
/home/pacho/Desktop/doscolumnas/paper_enzimo.dvi[2]: Warning: requested character 147 does not exist in `ptmr8r'
/home/pacho/Desktop/doscolumnas/paper_enzimo.dvi[2]: Warning: requested character 147 does not exist in `ptmr8r'
/home/pacho/Desktop/doscolumnas/paper_enzimo.dvi[2]: Warning: requested character 147 does not exist in `ptmr8r'
/home/pacho/Desktop/doscolumnas/paper_enzimo.dvi[2]: Warning: requested character 147 does not exist in `ptmr8r'
/home/pacho/Desktop/doscolumnas/paper_enzimo.dvi[1]: Warning: requested character 147 does not exist in `ptmr8r'
/home/pacho/Desktop/doscolumnas/paper_enzimo.dvi[1]: Warning: requested character 147 does not exist in `ptmr8r'
/home/pacho/Desktop/doscolumnas/paper_enzimo.dvi[1]: Warning: requested character 147 does not exist in `ptmr8r'
/home/pacho/Desktop/doscolumnas/paper_enzimo.dvi[1]: Warning: requested character 147 does not exist in `ptmr8r'
/home/pacho/Desktop/doscolumnas/paper_enzimo.dvi[1]: Warning: requested character 147 does not exist in `ptmr8r'
/home/pacho/Desktop/doscolumnas/paper_enzimo.dvi[1]: Warning: requested character 147 does not exist in `ptmr8r'
/home/pacho/Desktop/doscolumnas/paper_enzimo.dvi[1]: Warning: requested character 147 does not exist in `ptmr8r'
/home/pacho/Desktop/doscolumnas/paper_enzimo.dvi[1]: Warning: requested character 147 does not exist in `ptmr8r'
/home/pacho/Desktop/doscolumnas/paper_enzimo.dvi[1]: Warning: requested character 147 does not exist in `ptmr8r'
/home/pacho/Desktop/doscolumnas/paper_enzimo.dvi[1]: Warning: requested character 147 does not exist in `ptmr8r'
/home/pacho/Desktop/doscolumnas/paper_enzimo.dvi[1]: Warning: requested character 147 does not exist in `ptmr8r'
/home/pacho/Desktop/doscolumnas/paper_enzimo.dvi[1]: Warning: requested character 147 does not exist in `ptmr8r'
/home/pacho/Desktop/doscolumnas/paper_enzimo.dvi[2]: Warning: requested character 147 does not exist in `ptmr8r'
/home/pacho/Desktop/doscolumnas/paper_enzimo.dvi[2]: Warning: requested character 147 does not exist in `ptmr8r'
/home/pacho/Desktop/doscolumnas/paper_enzimo.dvi[2]: Warning: requested character 147 does not exist in `ptmr8r'
/home/pacho/Desktop/doscolumnas/paper_enzimo.dvi[2]: Warning: requested character 147 does not exist in `ptmr8r'
/home/pacho/Desktop/doscolumnas/paper_enzimo.dvi[2]: Warning: requested character 147 does not exist in `ptmr8r'
/home/pacho/Desktop/doscolumnas/paper_enzimo.dvi[2]: Warning: requested character 147 does not exist in `ptmr8r'
Comment 4 Pacho Ramos 2011-01-17 14:00:07 UTC
Created attachment 178510 [details]
xdvi screenshot

On the other side, xdvi shows the file properly (even better than 2.32 before patching)
Comment 5 José Aliste 2011-01-17 15:26:43 UTC
argh, I am deeply sorry about that... I will try to fix it as soon as possible.
Comment 6 José Aliste 2011-01-17 17:44:54 UTC
Created attachment 178534 [details] [review]
fix the issue

This should fix the issue. I inadvertently changed the logic of the pk_font_loader in the security fix and didn't test as I should have.
Comment 7 Pacho Ramos 2011-01-17 18:09:28 UTC
That patch solves the issue, thanks :-D

But, do you know why evince still is unable to properly show title while xdvi works fine with it? Thanks again
Comment 8 José Aliste 2011-01-17 18:18:07 UTC
Pacho, that's another thing, could you please file a new bug for that. I guess this is a bug in mdvi lib. For instance, in ubuntu, I get another fonts and the titile is shown perfectly.
Comment 9 Pacho Ramos 2011-01-17 18:41:32 UTC
OK, thanks a lot for your help :-)
Comment 10 Carlos Garcia Campos 2011-01-17 18:44:41 UTC
Review of attachment 178534 [details] [review]:

Please push it.
Comment 11 José Aliste 2011-01-17 20:28:36 UTC
This problem has been fixed in the development version. The fix will be available in the next major software release. Thank you for your bug report.