[File-cvs] CVS commit: file/src

Christos Zoulas christos at zoulas.com
Sat Mar 19 19:52:09 UTC 2022

Module Name:	file
Committed By:	christos
Date:		Sat Mar 19 19:52:09 UTC 2022

Modified Files:
	file/src: apprentice.c file.h funcs.c softmagic.c

Log Message:
Now that we are cacheing regex's we cannot assume that we always
do regcomp->regexec->regfree, so this causes memory corruption (and
increased memory use with all the locale copies) in xlocale systems.
Instead save and restore locales in regcomp and regexec as needed.

To generate a diff of this commit:
cvs rdiff -r1.318 -r1.319 file/src/apprentice.c
cvs rdiff -r1.229 -r1.230 file/src/file.h
cvs rdiff -r1.125 -r1.126 file/src/funcs.c
cvs rdiff -r1.320 -r1.321 file/src/softmagic.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

More information about the File-cvs mailing list