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.
This commit is contained in:
Andrew W Elble 2022-01-12 11:14:37 -05:00 committed by GitHub
parent 6c9b781e6e
commit b3043cae8f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -37,6 +37,14 @@ def patch(self):
# 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 = []