GNOME Bugzilla – Bug 639746
Applying commit for fixing several security issues in the dvi-backend breaks dvi views
Last modified: 2011-01-17 20:28:36 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).
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
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" :-/
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'
Created attachment 178510 [details] xdvi screenshot On the other side, xdvi shows the file properly (even better than 2.32 before patching)
argh, I am deeply sorry about that... I will try to fix it as soon as possible.
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.
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
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.
OK, thanks a lot for your help :-)
Review of attachment 178534 [details] [review]: Please push it.
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.