[File-cvs] CVS commit: file/src

Christos Zoulas christos at zoulas.com
Thu Feb 13 18:08:49 UTC 2020

Module Name:	file
Committed By:	christos
Date:		Thu Feb 13 18:08:49 UTC 2020

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

Log Message:
PR/139: avoid excessive printing from doctored magic files (gockelhahn)
- keep track of how much we've printed so far, and stop at 1M
- parse the printf(3) format and abort on large field widths.

To generate a diff of this commit:
cvs rdiff -r1.285 -r1.286 file/src/apprentice.c
cvs rdiff -r1.209 -r1.210 file/src/file.h
cvs rdiff -r1.109 -r1.110 file/src/funcs.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