<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>40817</bug_id>
          
          <creation_ts>2021-08-27 09:51:00 +0300</creation_ts>
          <short_desc>Файл из PFB в PFА не конвертируется</short_desc>
          <delta_ts>2021-09-11 08:52:37 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>ghostscript</component>
          <version>unstable</version>
          <rep_platform>x86_64</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P5</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="annschafer">annschafer</reporter>
          <assigned_to name="Fr. Br. George">george</assigned_to>
          <cc>admsasha</cc>
    
    <cc>aen</cc>
    
    <cc>george</cc>
    
    <cc>kirill</cc>
    
    <cc>mike</cc>
    
    <cc>vitty</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>202082</commentid>
    <comment_count>0</comment_count>
    <who name="annschafer">annschafer</who>
    <bug_when>2021-08-27 09:51:00 +0300</bug_when>
    <thetext>Файл не конвертируется(PFB в PFА).

---

Шаги воспроизведения:
1) Установка пакетов 
# apt-get install ghostscript ghostscript-classic ghostscript-common ghostscript-gtk ghostscript-module-X ghostscript-utils

2) Распаковка архива со шрифтами и переход в папку шрифтов.

3) $ pfbtopfa Helvetica_Cyrillic_Inclined.PFB Helvetica_Cyrillic_Inclined.PFA

Реальный результат:
Error: /invalidfileaccess in --file--
Operand stack:
   in1   (Helvetica_Cyrillic_Inclined.PFB)   (r)
Execution stack:
   %interp_exit   .runexec2   --nostringval--   --nostringval--   --nostringval--   2   %stopped_push   --nostringval--   --nostringval--   --nostringval--   false   1   %stopped_push   1974   1   3   %oparray_pop   1973   1   3   %oparray_pop   1961   1   3   %oparray_pop   1817   1   3   %oparray_pop   --nostringval--   %errorexec_pop   .runexec2   --nostringval--   --nostringval--   --nostringval--   2   %stopped_push   --nostringval--   --nostringval--
Dictionary stack:
   --dict:727/1123(ro)(G)--   --dict:0/20(G)--   --dict:78/200(L)--
Current allocation mode is local
Last OS error: Permission denied
Current file position is 996
GPL Ghostscript 9.53.3: Unrecoverable error, exit code 1


Ожидаемый результат: Шрифт формата PFB сконвертировался в шрифт формата PFА.

Файлы шрифтов взяты из файлов, которые поставляются вместе с пакетом (лежат в каталогах /usr/share/doc/ghostscript-*/examples и /usr/share/doc/ghostscript-classic-*/examples). Также выполнялась проверка с файлами шрифтов, скачанных из интернета, они не конвертировались с такой же ошибкой.

Версия ghostscript-9.53.3-alt1.x86_64.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>202165</commentid>
    <comment_count>1</comment_count>
    <who name="Fr. Br. George">george</who>
    <bug_when>2021-08-31 13:13:23 +0300</bug_when>
    <thetext>Надо в скрипт -dNOAFER вставить. Перебдели они там со своей безопасностью.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>202168</commentid>
    <comment_count>2</comment_count>
    <who name="Fr. Br. George">george</who>
    <bug_when>2021-08-31 13:19:13 +0300</bug_when>
    <thetext>(Ответ для Fr. Br. George на комментарий #1)
&gt; Надо в скрипт -dNOAFER вставить. Перебдели они там со своей безопасностью.

-dNOSAFER</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>202174</commentid>
    <comment_count>3</comment_count>
    <who name="Repository Robot">repository-robot</who>
    <bug_when>2021-08-31 16:04:17 +0300</bug_when>
    <thetext>ghostscript-9.54.0-alt2 -&gt; sisyphus:

 Tue Aug 31 2021 Fr. Br. George &lt;george@altlinux.ru&gt; 9.54.0-alt2
 - Fix redundant SAFER usage (Closes: #40817)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>202176</commentid>
    <comment_count>4</comment_count>
    <who name="AEN">aen</who>
    <bug_when>2021-08-31 16:50:50 +0300</bug_when>
    <thetext>Спасибо! 
В p10 и p9, пожалуйста.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>202640</commentid>
    <comment_count>5</comment_count>
    <who name="Michael Shigorin">mike</who>
    <bug_when>2021-09-11 08:52:37 +0300</bug_when>
    <thetext>(Ответ для Fr. Br. George на комментарий #1)
&gt; Надо в скрипт -dNOAFER вставить. Перебдели они там со своей безопасностью.
Недоперебдели, судя по bug 40899...</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>