summaryrefslogtreecommitdiff
path: root/sys/src/cmd/gs
AgeCommit message (Collapse)Author
2019-06-21gs: apply mitigations against CVE-2017-8291 (thanks jsmoody)cinap_lenrek
To reproduce: gs -q -dNOPAUSE -dSAFER '-sDEVICE=ppmraw' '-sOutputFile=/dev/null' <<. %!PS-Adobe-3.0 EPSF-3.0 %%BoundingBox: -0 -0 100 100 /size_from 10000 def /size_step 500 def /size_to 65000 def /enlarge 1000 def %/bigarr 65000 array def 0 size_from size_step size_to { pop 1 add } for /buffercount exch def /buffersizes buffercount array def 0 size_from size_step size_to { buffersizes exch 2 index exch put 1 add } for pop /buffers buffercount array def 0 1 buffercount 1 sub { /ind exch def buffersizes ind get /cursize exch def cursize string /curbuf exch def buffers ind curbuf put cursize 16 sub 1 cursize 1 sub { curbuf exch 255 put } for } for /buffersearchvars [0 0 0 0 0] def /sdevice [0] def enlarge array aload { .eqproc buffersearchvars 0 buffersearchvars 0 get 1 add put buffersearchvars 1 0 put buffersearchvars 2 0 put buffercount { buffers buffersearchvars 1 get get buffersizes buffersearchvars 1 get get 16 sub get 254 le { buffersearchvars 2 1 put buffersearchvars 3 buffers buffersearchvars 1 get get put buffersearchvars 4 buffersizes buffersearchvars 1 get get 16 sub put } if buffersearchvars 1 buffersearchvars 1 get 1 add put } repeat buffersearchvars 2 get 1 ge { exit } if %(.) print } loop .eqproc .eqproc .eqproc sdevice 0 currentdevice buffersearchvars 3 get buffersearchvars 4 get 16#7e put buffersearchvars 3 get buffersearchvars 4 get 1 add 16#12 put buffersearchvars 3 get buffersearchvars 4 get 5 add 16#ff put put buffersearchvars 0 get array aload sdevice 0 get 16#3e8 0 put sdevice 0 get 16#3b0 0 put sdevice 0 get 16#3f0 0 put currentdevice null false mark /OutputFile (%pipe%echo gotce) .putdeviceparams 1 true .outputpage .rsdparams %{ } loop 0 0 .quit %asdf .
2019-05-24gs: fix missing type check in ztype (thanks jsmoody)cinap_lenrek
to reproduce: gs <<. null [[][][][][][][][][][][][][][][]] .type .
2019-05-23gs: apply fixes for CVE-2018-16509 (thanks jsmoody)cinap_lenrek
2019-05-03gs: arm64 supportcinap_lenrek
2019-05-03gs: avoid stupid shifts by casting to uint64_tcinap_lenrek
2017-03-14gs: validate parameter is dict in .initialize_dsc_parsemischief
gs bug 697190, upstream commit 875a0095 also check gs_alloc_struct return value from upstream commit a2afc66d
2017-03-13gs: check for sufficient params in .sethalftone5mischief
ghostscript bug 697203, upstream commit f5c7555c303
2017-03-13gs: fix dangleing pointer crash with "lock" (ghostscript Bug 697204)cinap_lenrek
2016-05-04retire the dec alpha portcinap_lenrek
2016-04-11gs: replace openssl aes implementation with ape/libseccinap_lenrek
2015-08-25fix fuckupglenda
2015-08-25import E script from bell labsmischief
2015-08-16gs: fix alignment bug in image_render_interpolate()cinap_lenrek
2015-08-08gs: fix build for objtype=spimcinap_lenrek
2015-04-17gs: avoid 6c type propagation / constant folding issue for set_cb_end()cinap_lenrek
6c changed "- cmd_lagest_size + 1" into a *unsigned* 32bit constant. which got added to 64bit pointer making pcb->limit > pcb->end resulting in errors for partial commands in the buffer. removing the parentesis propagates the operation to 64bit.
2015-03-08gs: fix bug 694539. Reading off the end of the cbuf when dash pattern len is maxcinap_lenrek
2015-02-21gs: backport 16MB string supportcinap_lenrek
2015-02-20gs: backport aes support for pdf-1.6cinap_lenrek
2014-11-07all: typo fixes from ray@raylai.commischief
2014-05-05gs: fix /undefined in --setcolor-- errors on amd64cinap_lenrek
2014-05-04gs: remove PStorage data type from ttf interpretercinap_lenrek
i dont see that pointers are stored in PStorage at all, so just use PLong directly avoding all this confusion.
2014-05-04gs: fix truetype interpreter for amd64cinap_lenrek
2014-02-01gs: amd64 supportcinap_lenrek
2011-05-04rename ape manpages so they dont get filtered out as object filescinap_lenrek
2011-04-18boot(8): changed tread to read, other: fix permscinap_lenrek
2011-04-15remove junk generated by build.sl
2011-04-15add /sys/lib/dist/bin/386, required for build.sl
2011-04-11permscinap_lenrek
2011-03-30ape dirscinap_lenrek
2011-03-30Import sources from 2011-03-30 iso image - libTaru Karttunen
2011-03-30...cinap_lenrek
2011-03-30Import sources from 2011-03-30 iso imageTaru Karttunen