[File-cvs] CVS commit: file

Christos Zoulas christos at zoulas.com
Fri Feb 5 21:33:49 UTC 2021


Module Name:	file
Committed By:	christos
Date:		Fri Feb  5 21:33:49 UTC 2021

Modified Files:
	file: ChangeLog
	file/doc: file.man
	file/src: apprentice.c encoding.c file.c file.h magic.c

Log Message:
PR/234: halaei: Add limit to the number of bytes to scan for encoding

file_buffer(3) passed the full size of the buffer to the encoding
determination function. If the file was too large, we ended up
allocating (2 * size + 4 * size) buffers to scan for encoding. Now
we limit size to 64K.


To generate a diff of this commit:
cvs rdiff -r1.341 -r1.342 file/ChangeLog
cvs rdiff -r1.142 -r1.143 file/doc/file.man
cvs rdiff -r1.299 -r1.300 file/src/apprentice.c
cvs rdiff -r1.26 -r1.27 file/src/encoding.c
cvs rdiff -r1.188 -r1.189 file/src/file.c
cvs rdiff -r1.223 -r1.224 file/src/file.h
cvs rdiff -r1.113 -r1.114 file/src/magic.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