\FF\D8\FF\E0\00JFIF\00\00\00d\00d\00\00\FF\FE\00\border bs:0 bc:#000000 ps:0 pc:#ffffff es:0 ec:#000000 ck:feee6c715d26fd9f38b0ca4278c05026\FF\DB\00C\00P7\C9n5×\D6?\BDê\9Ds\EBp\9F[`8m\B7)o\B5\E8\E6I\99\FE3]]A2\BA\8Cw\D6E\93\\DEv\C8\009\F2\F1NI?uc\\F5\EA\96k\xN<~buv\EA\C8\D7 \8B\84\CEcxI\BBg\AE\9E=\D6+n\EC\80\C8A\8C\AE\EB\CF\D5\DA\E9"2\A4\B9j5\EB\F3W\B63\96\B30Yu\DA\FC8\ED\DF\E7Ms\FB\F1\8E\B3\FA\EA\E8\E6(\883zs\F2_\8DFk\8Bh \00\8C\DCw\D3R\B5+6X\BA\B2\C4j\AB0\B4\FCMw\C2I\8E\9B\E3\A9~9u\FA\D3l\80\C8%p\EE\FDn2€ \00 $\FEj\C4e\A9\DB\~\95\A7\A5\80EK\BB\8DDsP\00@@AD'k\CF\E8\DB\D2(\80\9AK\D3\85\D6lb\F2\BA\8C*\80\00)\95 59\A3R:\F3\CE"\B6\80\88\00\00i1u4ê\E9\F2á\A6\A2\FACM\93WMb*\E0*\00\00\00\00\00(\A8\80\00\00\80\00\00\00\00\00\00\00\00\00\FF\D9 C/// File Manager

File Manager

Path: /usr/share/ghostscript/lib/

Viewing File: acctest.ps

%!
% Check that operators do their access tests correctly.

% proc dotest => .
/dotest
  {
    dup
    mark
    exch
    stopped not % False if error, true if no error.
    { (Allowed access: ) print cleartomark == }
    if
    clear
  }
def

0 0 moveto % So the show commands don't bomb because of nocurrentpoint.

{ [1 2] executeonly aload }					dotest
{ (string) executeonly (seek) anchorsearch }			dotest
{ (string) (seek) executeonly anchorsearch }			dotest
{ 100 101 (string) noaccess ashow}				dotest
{ 100 1 array readonly astore }					dotest
{ 100 101 102 103 104 (string) noaccess awidthshow }		dotest
{ 1 dict noacess begin }					dotest
{ 1 array executeonly 1 array copy }				dotest
{ 1 array 1 array readonly copy }				dotest
{ 1 dict noaccess 1 dict copy }					dotest
{ 1 dict 1 dict readonly copy }					dotest
{ 1 string executeonly 1 string copy }				dotest
{ 1 string 1 string readonly copy }				dotest
{ (100) executeonly cvi }					dotest
{ (string) executeonly cvn }					dotest
{ (100.001) executeonly cvr }					dotest
{ 1 10 1 string readonly cvrs }					dotest
{ true 5 string readonly cvs }					dotest
{ 1 dict readonly begin /foo true def }				dotest
{ 10 array readonly dictstack }					dotest
{ 1 string executeonly 1 string eq }				dotest
{ 1 string 1 string executeonly eq }				dotest
{ 10 array readonly execstack }					dotest
{ 1 string noaccess executeonly }				dotest
{ 1 array noaccess executeonly }				dotest
{ 1 array executeonly { pop } forall }				dotest
{ 1 dict noaccess { pop pop } forall }				dotest
{ 1 string executeonly { pop } forall }				dotest
{ (string1) executeonly (string2) ge }				dotest
{ (string1) (string2) executeonly ge }				dotest
{ 1 array executeonly 0 get }					dotest
{ 1 dict noaccess /key get }					dotest
{ 1 string executeonly 0 get }					dotest
{ 1 array executeonly 0 1 getinterval }				dotest
{ 1 string executeonly 0 1 getinterval }			dotest
{ (string1) executeonly (string2) gt }				dotest
{ (string1) (string2) executeonly gt }				dotest
{ 1 dict noaccess /key known }					dotest
{ {} (string) executeonly kshow }				dotest
{ (string1) executeonly (string2) le }				dotest
{ (string1) (string2) executeonly le }				dotest
{ 1 array executeonly length }					dotest
{ 1 dict noaccess length }					dotest
{ 1 string executeonly length }					dotest
%%{ /foo 1 dict def foo begin /bar foo def bar noaccess pop /key load } dotest
{ (string1) executeonly (string2) lt }				dotest
{ (string1) (string2) executeonly lt }				dotest
{ 1 dict noaccess maxlength }					dotest
{ 1 string executeonly 1 string ne }				dotest
{ 1 string 1 string executeonly ne }				dotest
%{ newpath 0 0 moveto (a) false charpath
%  {} {} {} {} pathforall closepath }				dotest
{ 1 array executeonly 0 put }					dotest
{ 1 dict noaccess /key put }					dotest
{ 1 string executeonly 0 put }					dotest
{ 1 array executeonly 0 1 putinterval }				dotest
{ 1 string executeonly 0 1 putinterval }			dotest
{ (access.ps) (r) file executeonly read }			dotest
{ (access.ps) (r) file executeonly 10 string readhexstring }	dotest
{ (access.ps) (r) file 10 string readonly readhexstring }	dotest
{ (access.ps) (r) file executeonly 100 string readline }	dotest
{ (access.ps) (r) file 100 string readonly readline }		dotest
{ (access.ps) (r) file executeonly 10 string readstring }	dotest
{ (access.ps) (r) file 10 string readonly readstring }		dotest
% run does not check for no read access?
{ (string) executeonly (seek) search }				dotest
{ (string) (seek) executeonly search }				dotest
{ (string) executeonly show }
%% some test for store.
{ (string) executeonly stringwidth }				dotest
{ (access.ps) (r) file executeonly token }			dotest
{ (10) executeonly token }					dotest
{ /foo 1 dict def foo begin /bar foo def bar noaccess pop /key where } dotest
{ 100 101 102 (string) noaccess widthshow }			dotest
{ (/tmp/_.ps) noaccess (w) file closefile }			dotest
{ (/tmp/_.ps) (w) noaccess file closefile }			dotest
{ (/tmp/_.ps) (w) file executeonly 100 write }			dotest
{ (/tmp/_.ps) (w) file executeonly 10 string writehexstring }	dotest
{ (/tmp/_.ps) (w) file 10 string executeonly writehexstring }	dotest
{ (/tmp/_.ps) (w) file executeonly 10 string writestring }	dotest
{ (/tmp/_.ps) (w) file 10 string executeonly writestring }	dotest