diff options
author | Andrew W Elble <aweits@rit.edu> | 2022-01-12 11:14:37 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-12 17:14:37 +0100 |
commit | b3043cae8f6e9a3dda6452dab7b85c1aa616114f (patch) | |
tree | ac69a7821e43d3f984223bea530eb31d70f21628 | |
parent | 6c9b781e6eeda0d3cef56cc536dca931cb9c09e2 (diff) | |
download | spack-b3043cae8f6e9a3dda6452dab7b85c1aa616114f.tar.gz spack-b3043cae8f6e9a3dda6452dab7b85c1aa616114f.tar.bz2 spack-b3043cae8f6e9a3dda6452dab7b85c1aa616114f.tar.xz spack-b3043cae8f6e9a3dda6452dab7b85c1aa616114f.zip |
grace: workaround for buffer overflows (#28232)
spack paths can be long and this overflows (at least) these buffers
inside of the bundled T1lib inside of the grace distribution, leading
to crashes on startup.
-rw-r--r-- | var/spack/repos/builtin/packages/grace/package.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/grace/package.py b/var/spack/repos/builtin/packages/grace/package.py index 3d2a84e051..2b71ea5b6a 100644 --- a/var/spack/repos/builtin/packages/grace/package.py +++ b/var/spack/repos/builtin/packages/grace/package.py @@ -37,6 +37,14 @@ class Grace(AutotoolsPackage): # currently and would require to run "autoreconf". filter_file('<fftw.h>', '<dfftw.h>', 'configure', 'src/fourier.c') + filter_file('char filename[128];', + 'char filename[4096];', + 'T1lib/type1/scanfont.c', + string=True) + filter_file('char CurFontName[120];', + 'char CurFontName[4096];', + 'T1lib/type1/fontfcn.c', + string=True) def configure_args(self): args = [] |